1 .TH "PKI \-\-REQ" 1 "2013-07-31" "@PACKAGE_VERSION@" "strongSwan"
5 pki \-\-req \- Create a PKCS#10 certificate request
11 .IR file | \fB\-\-keyid\fR
14 .BI \-\-dn\~ distinguished-name
15 .OP \-\-san subjectAltName
16 .OP \-\-password password
18 .OP \-\-rsa\-padding padding
19 .OP \-\-outform encoding
24 .BI \-\-options\~ file
37 is used to create a PKCS#10 certificate request.
43 Print usage information with a summary of the available options.
45 .BI "\-v, \-\-debug " level
46 Set debug level, default: 1.
48 .BI "\-+, \-\-options " file
49 Read command line options from \fIfile\fR.
51 .BI "\-i, \-\-in " file
52 Private key input file. If not given the key is read from \fISTDIN\fR.
54 .BI "\-x, \-\-keyid " hex
55 Smartcard or TPM private key object handle in hex format with an optional
58 .BI "\-t, \-\-type " type
59 Type of the input key. Either \fIpriv\fR, \fIrsa\fR, \fIecdsa\fR or \fIbliss\fR,
60 defaults to \fIpriv\fR.
62 .BI "\-d, \-\-dn " distinguished-name
63 Subject distinguished name (DN). Required.
65 .BI "\-a, \-\-san " subjectAltName
66 subjectAltName extension to include in request. Can be used multiple times.
68 .BI "\-p, \-\-password " password
69 The challengePassword to include in the certificate request.
71 .BI "\-g, \-\-digest " digest
72 Digest to use for signature creation. One of \fImd5\fR, \fIsha1\fR,
73 \fIsha224\fR, \fIsha256\fR, \fIsha384\fR, or \fIsha512\fR. The default is
74 determined based on the type and size of the signature key.
76 .BI "\-R, \-\-rsa\-padding " padding
77 Padding to use for RSA signatures. Either \fIpkcs1\fR or \fIpss\fR, defaults
80 .BI "\-f, \-\-outform " encoding
81 Encoding of the created certificate file. Either \fIder\fR (ASN.1 DER) or
82 \fIpem\fR (Base64 PEM), defaults to \fIder\fR.
86 Generate a certificate request for an RSA key, with a subjectAltName extension:
89 pki \-\-req \-\-in key.der \-\-dn "C=CH, O=strongSwan, CN=moon" \\
90 \-\-san moon@strongswan.org > req.der
93 Generate a certificate request for an ECDSA key and a different digest:
96 pki \-\-req \-\-in key.der \-\-type ecdsa \-\-digest sha256 \\
97 \-\-dn "C=CH, O=strongSwan, CN=carol" > req.der