diff options
author | Nikos <nmav@crystal.(none)> | 2008-03-08 02:06:25 +0200 |
---|---|---|
committer | Nikos <nmav@crystal.(none)> | 2008-03-08 02:06:25 +0200 |
commit | cf8fb4bca34ec865959f1544e395b5566f2449ac (patch) | |
tree | 96ae89a98833d2c7c135cff0ce7679f30b444947 /doc | |
parent | adff00bfbdf054d49e8f0e370b54ba083611977e (diff) | |
download | gnutls-cf8fb4bca34ec865959f1544e395b5566f2449ac.tar.gz |
added documentation on how to generate a certificate without a certificate
request.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/gnutls.texi | 12 | ||||
-rw-r--r-- | doc/manpages/certtool.1 | 13 |
2 files changed, 23 insertions, 2 deletions
diff --git a/doc/gnutls.texi b/doc/gnutls.texi index 0cfdd44cb1..527c23ddd3 100644 --- a/doc/gnutls.texi +++ b/doc/gnutls.texi @@ -3001,7 +3001,17 @@ $ certtool --generate-privkey --outfile key.pem @end example @item -To create a certificate request, run: +To generate a certificate using the private key, use the command: + +@example +$ certtool --generate-certificate --load-privkey key.pem \ + --outfile cert.pem --load-ca-certificate ca-cert.pem \ + --load-ca-privkey ca-key.pem +@end example + +@item +To create a certificate request (needed when the certificate is issued by +another party), run: @example $ certtool --generate-request --load-privkey key.pem \ diff --git a/doc/manpages/certtool.1 b/doc/manpages/certtool.1 index 3183f24504..4f87c60aa6 100644 --- a/doc/manpages/certtool.1 +++ b/doc/manpages/certtool.1 @@ -95,7 +95,8 @@ $ certtool \-\-generate\-privkey \-\-outfile key.pem .fi .RE -To create a certificate request, run: +To create a certificate request (needed when the certificate is issued by +another party), run: .RS .nf @@ -114,6 +115,16 @@ $ certtool \-\-generate\-certificate \-\-load\-request request.pem \\ .fi .RE +To generate a certificate using the private key only, use the command: + +.RS +.nf +$ certtool \-\-generate\-certificate \-\-load\-privkey key.pem \\ + \-\-outfile cert.pem \-\-load\-ca\-certificate ca\-cert.pem \\ + \-\-load\-ca\-privkey ca\-key.pem +.fi +.RE + To view the certificate information, use: .RS |