GRID-CERT-REQUEST(1) | Grid Community Toolkit Manual | GRID-CERT-REQUEST(1) |
grid-cert-request - Generate a X.509 certificate request and corresponding private key
grid-cert-request -help | -h | -? | -usage | -version | -versions
grid-cert-request [OPTIONS]
The grid-cert-request program generates an X.509 Certificate Request and corresponding private key for the specified name, host, or service. It is intended to be used with a CA implemented using the globus_simple_ca package.
The default behavior of grid-cert-request is to generate a certificate request and private key for the user running the command. The subject name is derived from the gecos information in the local system’s password database, unless the -commonname, -cn, or -host command-line options are used.
By default, grid-cert-request writes user certificate requests and keys to the $HOME/.globus directory, and host and service certificate requests and keys to /etc/grid-security. This can be overridden by using the -dir command-line option.
The full set of command-line options to grid-cert-request are:
-help, -h, -?, -usage
-version, -versions
-cn NAME, -commonname NAME
-dir DIRECTORY
-prefix PREFIX
-ca CA-HASH
-verbose
-interactive, -int
-force
-nopw, -nodes, -nopassphrase
-host FQDN
-service SERVICE
-dns FQDN,...
-ip IP-ADDRESS,...
Create a user certificate request: % grid-cert-request A certificate request and private key is being created. You will be asked to enter a PEM pass phrase. This pass phrase is akin to your account password, and is used to protect your key file. If you forget your pass phrase, you will need to obtain a new certificate. A private key and a certificate request has been generated with the subject:
/O=org/OU=example/OU=grid/CN=Joe User
If the CN=Joe User is not appropriate, rerun this script with the -force -cn "Common Name" options.
Your private key is stored in /home/juser/.globus/userkey.pem Your request is stored in /home/juser/.globus/usercert_request.pem
Please e-mail the request to the Example CA ca@grid.example.org You may use a command similar to the following:
cat /home/juser/.globus/usercert_request.pem | mail ca@grid.example.org
Only use the above if this machine can send AND receive e-mail. if not, please mail using some other method.
Your certificate will be mailed to you within two working days. If you receive no response, contact Example CA at ca@grid.example.org
Create a host certificate for a host with two names.
% *grid-cert-request -host grid.example.org -dns grid.example.org,grid-internal.example.org* A private host key and a certificate request has been generated with the subject:
/O=org/OU=example/OU=grid/CN=host/grid.example.org
----------------------------------------------------------
The private key is stored in /etc/grid-security/hostkey.pem The request is stored in /etc/grid-security/hostcert_request.pem
Please e-mail the request to the Example CA ca@grid.example.org You may use a command similar to the following:
cat /etc/grid-security/hostcert_request.pem | mail ca@grid.example.org
Only use the above if this machine can send AND receive e-mail. if not, please mail using some other method.
Your certificate will be mailed to you within two working days. If you receive no response, contact Example CA at ca@grid.example.org
The following environment variables affect the execution of grid-cert-request:
X509_CERT_DIR
GRID_SECURITY_DIR
GLOBUS_LOCATION
$HOME/.globus/usercert_request.pem
$HOME/.globus/usercert.pem
$HOME/.globus/userkey.pem
/etc/grid-security/hostcert_request.pem
/etc/grid-security/hostcert.pem
/etc/grid-security/hostkey.pem
TRUSTED-CERT-DIR/globus-user-ssl.conf, TRUSTED-CERT-DIR/globus-user-ssl.conf.CA-HASH
TRUSTED-CERT-DIR/globus-host-ssl.conf, TRUSTED-CERT-DIR/globus-host-ssl.conf.CA-HASH
Copyright © 1999-2014 University of Chicago
12/17/2018 | Grid Community Toolkit 6 |