myproxy-init(1)

πŸ’– myproxy-init β€” the manual, but make it make sense πŸ’–

okay bestie, so this is myproxy-init(1) from the MyProxy manual, and honestly? it's giving "your one-stop shop for stashing a credential so you can grab it later" and I am obsessed. let's get into it πŸ¦‹


✨ NAME ✨

myproxy-init β€” store a credential for later retrieval


🌸 SYNOPSIS 🌸

myproxy-init [ options ]

πŸ’… DESCRIPTION πŸ’…

okay so real talk: the myproxy-init command uploads a credential to a myproxy-server(8) so you can come back and get it later. that's the whole vibe.

In the default mode, the command first prompts for the user's Grid pass phrase (if needed), which is used to create a proxy credential. Then it prompts for a MyProxy pass phrase, which you'll need later to retrieve the credential. The MyProxy pass phrase has to be typed a second time for confirmation (yes, twice, it's giving password-change energy but make it secure πŸ’–).

After that, a credential with a lifetime of one week (by default) is delegated to the myproxy-server(8) and stored with the given MyProxy pass phrase. Proxy credentials with a default lifetime of 12 hours can then be retrieved by myproxy-logon(1) using the MyProxy passphrase. All of this default behavior can be overridden by the options specified below. slay.


The myproxy-init command can also upload a credential to a myproxy-server(8) to support credential renewal. Renewal lets a trusted service β€” like, say, a batch job scheduler β€” obtain a new credential for a user before the existing credential it has for that user expires. no cap, that's the whole point.

The -R argument to myproxy-init configures the credential for renewal by the specified service. Renewal requires two authentications:

  1. The renewing service must authenticate with its own credentials, matching the distinquished name specified by the -R argument.
  2. It must also authenticate with an existing credential that matches the distinguished name of the stored credential, in order to retrieve a new credential.
⚠️ a credential may be used either for retrieval or renewal but not both. If you want both, upload a different credential for each use, with a different name using the -k option. periodt.

The hostname where the myproxy-server(8) is running must be specified by either defining the MYPROXY_SERVER environment variable or the -s option. pick your fighter πŸ’«

By default, myproxy-init will create a proxy credential from the user's end-entity credentials at ~/.globus/usercert.pem and ~/.globus/userkey.pem to delegate to the myproxy-server(8).

  • To specify an alternate location for the source certificate and key to delegate, use the X509_USER_CERT and X509_USER_KEY environment variables.
  • To use a proxy credential as the source of the delegation, set both environment variables to the location of the proxy credential.
  • To delegate a "legacy globus proxy", set the GT_PROXY_MODE environment variable to "old".
  • To delegate an "RFC 3820 compliant proxy", set the GT_PROXY_MODE environment variable to "rfc".

✨ OPTIONS ✨

every single one, bestie, no skips 🫢

  • -h, --help β€” Displays command usage text and exits.
  • -u, --usage β€” Displays command usage text and exits.
  • -v, --verbose β€” Enables verbose debugging output to the terminal.
  • -V, --version β€” Displays version information and exits.
  • -s hostname[:port], --pshost hostname[:port] β€” Specifies the hostname(s) of the myproxy-server(s). Multiple hostnames, each hostname optionally followed by a ':' and port number, may be specified in a comma-separated list. This option is required if the MYPROXY_SERVER environment variable is not defined. If specified, this option overrides the MYPROXY_SERVER environment variable. If a port number is specified with a hostname, it will override the -p option as well as the MYPROXY_SERVER_PORT environment variable for that host.
  • -p port, --psport port β€” Specifies the TCP port number of the myproxy-server(8). Default: 7512
  • -l username, --username username β€” Specifies the MyProxy account under which the credential should be stored. By default, the command uses the value of the LOGNAME environment variable. Use this option to specify a different account username on the MyProxy server. The MyProxy username need not correspond to a real Unix username.
  • -c hours, --cred_lifetime hours β€” Specifies the lifetime of the credential stored on the myproxy-server(8) in hours. Specify 0 for the maximum possible lifetime, i.e., the lifetime of the original credential. Default: 1 week (168 hours)
  • -t hours, --proxy_lifetime hours β€” Specifies the maximum lifetime of credentials retrieved from the myproxy-server(8) using the stored credential. Default: 12 hours
  • -C filename, --certfile filename β€” Specifies the filename of the source certificate.
  • -y filename, --keyfile filename β€” Specifies the filename of the source private key.
  • -d, --dn_as_username β€” Use the certificate subject (DN) as the default username, instead of the LOGNAME environment variable.
  • -a, --allow_anonymous_retrievers β€” Allow credentials to be retrieved with just pass phrase authentication. By default, only entities with credentials that match the myproxy-server.config(5) default retriever policy may retrieve credentials. This option allows entities without existing credentials to retrieve a credential using pass phrase authentication by including "anonymous" in the set of allowed retrievers. The myproxy-server.config(5) server-wide policy must also allow "anonymous" clients for this option to have an effect.
  • -A, --allow_anonymous_renewers β€” Allow credentials to be renewed by any client. Any client with a valid credential with a subject name that matches the stored credential may retrieve a new credential from the MyProxy repository if this option is given.
πŸ’€ okay so this effectively defeats the purpose of proxy credential lifetimes, so it is not recommended. It is included only for sake of completeness. (the manpage said it, not me!)
  • -r name, --retrievable_by name β€” Allow the specified entity to retrieve credentials. See -x and -X options for controlling name matching behavior.
  • -R name, --renewable_by name β€” Allow the specified entity to renew credentials. See -x and -X options for controlling name matching behavior. This option implies -n since passphrase authentication is not used for credential renewal.
  • -Z name, --retrievable_by_cert name β€” Allow the specified entity to retrieve credentials without a passphrase. See -x and -X options for controlling name matching behavior. This option implies -n.
  • -x, --regex_dn_match β€” Specifies that names used with following options -r, -R, and -Z will be matched against the full certificate subject distinguished name (DN) according to REGULAR EXPRESSIONS in myproxy-server.config(5).
  • -X, --match_cn_only β€” Specifies that names used with following options -r, -R, and -Z will be matched against the certificate subject common name (CN) according to REGULAR EXPRESSIONS in myproxy-server.config(5). For example, if an argument of -r "Jim Basney" is specified, then the resulting policy will be "*/CN=Jim Basney". This is the default behavior.
  • -k name, --credname name β€” Specifies the credential name.
  • -K description, --creddesc description β€” Specifies credential description.
  • -S, --stdin_pass β€” By default, the command prompts for a passphrase and reads the passphrase from the active tty. When running the command non-interactively, there may be no associated tty. Specifying this option tells the command to read passphrases from standard input without prompts or confirmation.
  • -L, --local_proxy β€” In addition to storing a proxy credential on the myproxy-server(8) with lifetime set by --cred_lifetime (default 1 week), create a local proxy credential with lifetime set by --proxy_lifetime (default 12 hours).
  • -n, --no_passphrase β€” Don't prompt for a credential passphrase. Store credentials without a credential passphrase, to be protected by other methods, such as PAM, SASL, or certificate-based authentication. This option is implied by -R since passphrase authentication is not used for credential renewal.
🚨 note that the myproxy-server(8) always requires some type of authentication for retrieving credentials, so if you store a credential with no passphrase and other authentication methods are not configured, the credential will not be accessible. like, at all. be careful bestie 😭
  • -m voms, --voms voms β€” Add VOMS attributes to the credential by running voms-proxy-init on the client-side before storing the credential on the myproxy-server(8). The VOMS VO name must be provided, as required by voms-proxy-init -voms. The voms-proxy-init command must be installed and configured to use this option. For example, the VOMS_USERCONF environment variable may need to be set for voms-proxy-init to run correctly.

πŸ”₯ EXIT STATUS πŸ”₯

  • 0 on success
  • >0 on error

πŸŽ€ FILES πŸŽ€

  • ~/.globus/usercert.pem β€” Default location of the certificate from which the proxy credential is created. Set the X509_USER_CERT environment variable to override.
  • ~/.globus/userkey.pem β€” Default location of the private key from which the proxy credential is created. Set the X509_USER_KEY environment variable to override.
  • /tmp/myproxy-proxy.<uid>.<pid> β€” Location of the temporary proxy credential that is delegated to the myproxy-server(8). It is removed after the delegation is completed.

and that's part 1, bestie β€” there's more coming so don't go anywhere πŸ’–

✨ ENVIRONMENT ✨

okay bestie, these env vars are the secret sauce that changes how myproxy-init(1) acts. lowkey important, so pay attention πŸ’…

  • GLOBUS_GSSAPI_NAME_COMPATIBILITY β€” by default this client does a reverse-DNS lookup to figure out the FQHN (Fully Qualified Host Name) so it can verify the server's identity by checking that FQHN against the CN in the server's certificate. if you set this to STRICT_RFC2818, it will NOT do the reverse-DNS lookup and will use the user-specified name instead. but heads up: this setting gets ignored if MYPROXY_SERVER_DN (coming up next) is set. iykyk.
  • MYPROXY_SERVER β€” tells you the hostname(s) where myproxy-server(8) is running. you can list multiple hostnames in a comma-separated list, and each hostname can optionally have a : and port number after it. this env var can be used instead of the -s option.
  • MYPROXY_SERVER_PORT β€” the port where myproxy-server(8) is running. use this instead of the -p option.
  • MYPROXY_SERVER_DN β€” the distinguished name (DN) of the myproxy-server(8). all MyProxy client programs authenticate the server's identity. by default, MyProxy servers run with host credentials, so the client programs expect the server to have a DN like "/CN=host/<fqhn>" or "/CN=myproxy/<fqhn>" or "/CN=<fqhn>" (where <fqhn> is the fully-qualified hostname of the server). if the server is running with some other DN, set this env var to tell MyProxy clients to accept that alternative DN. also peep GLOBUS_GSSAPI_NAME_COMPATIBILITY above.
  • X509_USER_CERT β€” non-standard location for the certificate that the proxy credential is created from. it can be the path to an end-entity certificate (ex. ~/.globus/usercert.pem) or a proxy (ex. /tmp/x509up_u<uid>).
  • X509_USER_KEY β€” non-standard location for the private key that the proxy credential is created from. can be the path to an end-entity private key (ex. ~/.globus/userkey.pem) or a proxy (ex. /tmp/x509up_u<uid>).
  • X509_CERT_DIR β€” non-standard location for the CA certificates directory.
  • GT_PROXY_MODE β€” set to "old" to store a "legacy globus proxy" in the MyProxy repository. set to "rfc" to store an "RFC 3820 compliant proxy" in the MyProxy repository.
  • MYPROXY_TCP_PORT_RANGE β€” a range of valid port numbers in the form "min,max" for the client side of the network connection to the server. by default the client binds to any available port. use this to restrict ports to a range your firewall allows. if unset, MyProxy follows the setting of the GLOBUS_TCP_PORT_RANGE environment variable.
  • MYPROXY_KEYBITS β€” the size for RSA keys generated by MyProxy. by default MyProxy generates 2048 bit RSA keys. set this to "1024" for 1024 bit RSA keys.

πŸ‘‘ AUTHORS πŸ‘‘

see http://grid.ncsa.illinois.edu/myproxy/about for the list of MyProxy authors. periodt. πŸ’…


πŸ”₯ SEE ALSO πŸ”₯


and that's a wrap, bestie! πŸ’– this manual page is from MyProxy, dated 2011-09-05, for myproxy-init(1). now go forth and slay your proxy game! πŸ¦‹βœ¨

πŸ“¦ where this page comes from