1 .TH "PKI \-\-REQ" 1 "2013-07-31" "@PACKAGE_VERSION@" "strongSwan"
5 pki \-\-req \- Create a PKCS#10 certificate request
12 .BI \-\-dn\~ distinguished-name
13 .OP \-\-san subjectAltName
14 .OP \-\-password password
16 .OP \-\-outform encoding
21 .BI \-\-options\~ file
34 is used to create a PKCS#10 certificate request.
40 Print usage information with a summary of the available options.
42 .BI "\-v, \-\-debug " level
43 Set debug level, default: 1.
45 .BI "\-+, \-\-options " file
46 Read command line options from \fIfile\fR.
48 .BI "\-i, \-\-in " file
49 Private key input file. If not given the key is read from \fISTDIN\fR.
51 .BI "\-t, \-\-type " type
52 Type of the input key. Either \fIrsa\fR or \fIecdsa\fR, defaults to \fIrsa\fR.
54 .BI "\-d, \-\-dn " distinguished-name
55 Subject distinguished name (DN). Required.
57 .BI "\-a, \-\-san " subjectAltName
58 subjectAltName extension to include in request. Can be used multiple times.
60 .BI "\-p, \-\-password " password
61 The challengePassword to include in the certificate request.
63 .BI "\-g, \-\-digest " digest
64 Digest to use for signature creation. One of \fImd5\fR, \fIsha1\fR,
65 \fIsha224\fR, \fIsha256\fR, \fIsha384\fR, or \fIsha512\fR. Defaults to
68 .BI "\-f, \-\-outform " encoding
69 Encoding of the created certificate file. Either \fIder\fR (ASN.1 DER) or
70 \fIpem\fR (Base64 PEM), defaults to \fIder\fR.
74 Generate a certificate request for an RSA key, with a subjectAltName extension:
77 pki \-\-req \-\-in key.der \-\-dn "C=CH, O=strongSwan, CN=moon" \\
78 \-\-san moon@strongswan.org > req.der
81 Generate a certificate request for an ECDSA key and a different digest:
84 pki \-\-req \-\-in key.der \-\-type ecdsa \-\-digest sha256 \\
85 \-\-dn "C=CH, O=strongSwan, CN=carol" > req.der