summaryrefslogtreecommitdiff
path: root/src/lib/libssl/src/doc/apps/CA.pl.pod
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/src/doc/apps/CA.pl.pod')
-rw-r--r--src/lib/libssl/src/doc/apps/CA.pl.pod43
1 files changed, 42 insertions, 1 deletions
diff --git a/src/lib/libssl/src/doc/apps/CA.pl.pod b/src/lib/libssl/src/doc/apps/CA.pl.pod
index 83e4c0af81..58e0f52001 100644
--- a/src/lib/libssl/src/doc/apps/CA.pl.pod
+++ b/src/lib/libssl/src/doc/apps/CA.pl.pod
@@ -13,6 +13,7 @@ B<CA.pl>
13[B<-help>] 13[B<-help>]
14[B<-newcert>] 14[B<-newcert>]
15[B<-newreq>] 15[B<-newreq>]
16[B<-newreq-nodes>]
16[B<-newca>] 17[B<-newca>]
17[B<-xsign>] 18[B<-xsign>]
18[B<-sign>] 19[B<-sign>]
@@ -46,6 +47,10 @@ written to the file "newreq.pem".
46creates a new certificate request. The private key and request are 47creates a new certificate request. The private key and request are
47written to the file "newreq.pem". 48written to the file "newreq.pem".
48 49
50=item B<-newreq-nowdes>
51
52is like B<-newreq> except that the private key will not be encrypted.
53
49=item B<-newca> 54=item B<-newca>
50 55
51creates a new CA hierarchy for use with the B<ca> program (or the B<-signcert> 56creates a new CA hierarchy for use with the B<ca> program (or the B<-signcert>
@@ -69,9 +74,16 @@ list box), otherwise the name "My Certificate" is used.
69 74
70calls the B<ca> program to sign a certificate request. It expects the request 75calls the B<ca> program to sign a certificate request. It expects the request
71to be in the file "newreq.pem". The new certificate is written to the file 76to be in the file "newreq.pem". The new certificate is written to the file
72"newcert.pem" except in the case of the B<-xcert> option when it is written 77"newcert.pem" except in the case of the B<-xsign> option when it is written
73to standard output. 78to standard output.
74 79
80
81=item B<-signCA>
82
83this option is the same as the B<-signreq> option except it uses the configuration
84file section B<v3_ca> and so makes the signed request a valid CA certificate. This
85is useful when creating intermediate CA from a root CA.
86
75=item B<-signcert> 87=item B<-signcert>
76 88
77this option is the same as B<-sign> except it expects a self signed certificate 89this option is the same as B<-sign> except it expects a self signed certificate
@@ -102,6 +114,35 @@ the request and finally create a PKCS#12 file containing it.
102 CA.pl -signreq 114 CA.pl -signreq
103 CA.pl -pkcs12 "My Test Certificate" 115 CA.pl -pkcs12 "My Test Certificate"
104 116
117=head1 DSA CERTIFICATES
118
119Although the B<CA.pl> creates RSA CAs and requests it is still possible to
120use it with DSA certificates and requests using the L<req(1)|req(1)> command
121directly. The following example shows the steps that would typically be taken.
122
123Create some DSA parameters:
124
125 openssl dsaparam -out dsap.pem 1024
126
127Create a DSA CA certificate and private key:
128
129 openssl req -x509 -newkey dsa:dsap.pem -keyout cacert.pem -out cacert.pem
130
131Create the CA directories and files:
132
133 CA.pl -newca
134
135enter cacert.pem when prompted for the CA file name.
136
137Create a DSA certificate request and private key (a different set of parameters
138can optionally be created first):
139
140 openssl req -out newreq.pem -newkey dsa:dsap.pem
141
142Sign the request:
143
144 CA.pl -signreq
145
105=head1 NOTES 146=head1 NOTES
106 147
107Most of the filenames mentioned can be modified by editing the B<CA.pl> script. 148Most of the filenames mentioned can be modified by editing the B<CA.pl> script.