.TH myproxy-store 1 "2011-09-05" "MyProxy" "MyProxy" .SH NAME myproxy-store \- store end-entity credential for later retrieval .SH SYNOPSIS .B myproxy-store [ .I options ] .SH DESCRIPTION The .B myproxy-store command uploads a credential to a .BR myproxy-server (8) for later retrieval. The user must have a valid proxy credential as generated by .B grid-proxy-init or retrieved by .BR myproxy-logon (1) when running this command. Unlike .BR myproxy-init (1), this command transfers the private key over the network (over a private channel). In the default mode, the command will take the credentials found in .I ~/.globus/usercert.pem and .I ~/.globus/userkey.pem and store them in the .BR myproxy-server (8) repository. Proxy credentials with default lifetime of 12 hours can then be retrieved by .BR myproxy-logon (1) using the credential passphrase. The default behavior can be overridden by options specified below. .PP The hostname where the .BR myproxy-server (8) is running must be specified by either defining the .B MYPROXY_SERVER environment variable or the .B -s option. .SH OPTIONS .TP .B -h, --help Displays command usage text and exits. .TP .B -u, --usage Displays command usage text and exits. .TP .B -v, --verbose Enables verbose debugging output to the terminal. .TP .B -V, --version Displays version information and exits. .TP .BI -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 .B MYPROXY_SERVER environment variable is not defined. If specified, this option overrides the .B MYPROXY_SERVER environment variable. If a port number is specified with a hostname, it will override the -p option as well as the .B MYPROXY_SERVER_PORT environment variable for that host. .TP .BI -p " port, " --psport " port" Specifies the TCP port number of the .BR myproxy-server (8). Default: 7512 If specified, this option overrides the .B MYPROXY_SERVER_PORT environment variable. .TP .BI -l " username, " --username " username" Specifies the MyProxy account under which the credential should be stored. By default, the command uses the value of the .B 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. .TP .BI -c " filename, " --certfile " filename" Specifies the filename of the source certificate. .TP .BI -y " filename, " --keyfile " filename" Specifies the filename of the source private key. .TP .BI -t " hours, " --proxy_lifetime " hours" Specifies the maximum lifetime of credentials retrieved from the .BR myproxy-server (8) using the stored credential. Default: 12 hours .TP .B -d, --dn_as_username Use the certificate subject (DN) as the default username, instead of the .B LOGNAME environment variable. .TP .B -a, --allow_anonymous_retrievers Allow credentials to be retrieved with just pass phrase authentication. By default, only entities with credentials that match the .BR 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 .BR myproxy-server.config (5) server-wide policy must also allow "anonymous" clients for this option to have an effect. .TP .B -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. Since this effectively defeats the purpose of proxy credential lifetimes, it is not recommended. It is included only for sake of completeness. .TP .BI -r " name, " --retrievable_by " name" Allow the specified entity to retrieve credentials. See .B -x and .B -X options for controlling name matching behavior. .TP .BI -E " name, " --retrieve_key " name" Allow the specified entity to retrieve end-entity credentials. See .B -x and .B -X options for controlling name matching behavior. .TP .BI -R " name, " --renewable_by " name" Allow the specified entity to renew credentials. See .B -x and .B -X options for controlling name matching behavior. .TP .BI -Z " name, " --retrievable_by_cert " name" Allow the specified entity to retrieve credentials without a passphrase. See .B -x and .B -X options for controlling name matching behavior. .TP .B -x, --regex_dn_match Specifies that names used with following options .BR -r , .BR -E , .BR -R , and .B -Z will be matched against the full certificate subject distinguished name (DN) according to .B REGULAR EXPRESSIONS in .BR myproxy-server.config (5). .TP .B -X, --match_cn_only Specifies that names used with following options .BR -r , .BR -E , .BR -R , and .B -Z will be matched against the certificate subject common name (CN) according to .B REGULAR EXPRESSIONS in .BR myproxy-server.config (5). For example, if an argument of .B -r "Jim Basney" is specified, then the resulting policy will be "*/CN=Jim Basney". This is the default behavior. .TP .BI -k " name, " --credname " name" Specifies the credential name. .TP .BI -K " description, " --creddesc " description" Specifies credential description. .TP .SH "EXIT STATUS" 0 on success, >0 on error .SH FILES .TP .I ~/.globus/usercert.pem Default location of the certificate to be stored on the .BR myproxy-server . Use the .B --certfile option to override. .TP .I ~/.globus/userkey.pem Default location of the private key to be stored on the .BR myproxy-server . Use the .B --keyfile option to override. .TP .B -T, --trustroots Retrieve CA certificates directory from server (if available) to store in the location specified by the .B X509_CERT_DIR environment variable if set or .I /etc/grid-security/certificates if running as root or .I ~/.globus/certificates if running as non-root. .SH ENVIRONMENT .TP .B GLOBUS_GSSAPI_NAME_COMPATIBILITY This client will, by default, perform a reverse-DNS lookup to determine the FQHN (Fully Qualified Host Name) to use in verifying the identity of the server by checking the FQHN against the CN in server's certificate. Setting this variable to .B STRICT_RFC2818 will cause the reverse-DNS lookup to NOT be performed and the user-specified name to be used instead. This variable setting will be ignored if .B MYPROXY_SERVER_DN (described later) is set. .TP .B MYPROXY_SERVER Specifies the hostname(s) where the .BR myproxy-server (8) is running. Multiple hostnames can be specified in a comma separated list with each hostname optionally followed by a ':' and port number. This environment variable can be used in place of the .B -s option. .TP .B MYPROXY_SERVER_PORT Specifies the port where the .BR myproxy-server (8) is running. This environment variable can be used in place of the .B -p option. .TP .B MYPROXY_SERVER_DN Specifies the distinguished name (DN) of the .BR myproxy-server (8). All MyProxy client programs authenticate the server's identity. By default, MyProxy servers run with host credentials, so the MyProxy client programs expect the server to have a distinguished name with "/CN=host/" or "/CN=myproxy/" or "/CN=" (where is the fully-qualified hostname of the server). If the server is running with some other DN, you can set this environment variable to tell the MyProxy clients to accept the alternative DN. Also see .B GLOBUS_GSSAPI_NAME_COMPATIBILITY above. .TP .B MYPROXY_TCP_PORT_RANGE Specifies 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 will bind to any available port. Use this environment variable to restrict the ports used to a range allowed by your firewall. If unset, MyProxy will follow the setting of the .B GLOBUS_TCP_PORT_RANGE environment variable. .TP .B X509_USER_CERT Specifies a non-standard location for the certificate to be used for authentication to the .BR myproxy-server (8). Also specifies the location for the certificate to be stored unless the .B -c option is given. .TP .B X509_USER_KEY Specifies a non-standard location for the private key to be used for authentication to the .BR myproxy-server (8). Also specifies the location for the private key to be stored unless the .B -y option is given. .TP .B X509_USER_PROXY Specifies a non-standard location for the proxy credential to be used for authentication to the .BR myproxy-server (8). .TP .B X509_CERT_DIR Specifies a non-standard location for the CA certificates directory. .SH AUTHORS See .B http://grid.ncsa.illinois.edu/myproxy/about for the list of MyProxy authors. .SH "SEE ALSO" .BR myproxy-change-pass-phrase (1), .BR myproxy-destroy (1), .BR myproxy-get-trustroots (1), .BR myproxy-info (1), .BR myproxy-logon (1), .BR myproxy-retrieve (1), .BR myproxy-server.config (5), .BR myproxy-admin-adduser (8), .BR myproxy-admin-change-pass (8), .BR myproxy-admin-load-credential (8), .BR myproxy-admin-query (8), .BR myproxy-server (8) .BR myproxy-retrieve (1)