diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-04-05 08:32:48 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-04-05 08:51:35 +0200 |
commit | ac291206e86f4d39e1820bbb746612c9018383b6 (patch) | |
tree | 997053f2d7ef1759a159da08ca44fd2aee1928e1 /src/certtool-args.def | |
parent | 1031e8a1a789fb4865220fe4c5cb8e15a451eb3d (diff) | |
download | gnutls-ac291206e86f4d39e1820bbb746612c9018383b6.tar.gz |
certtool: added examples on verifying certificates
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'src/certtool-args.def')
-rw-r--r-- | src/certtool-args.def | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/certtool-args.def b/src/certtool-args.def index 8cf1ab7be9..6aea3f2562 100644 --- a/src/certtool-args.def +++ b/src/certtool-args.def @@ -640,12 +640,26 @@ $ certtool --load-ca-certificate ca.pem \ --to-p12 --outder --outfile key.p12 @end example -@subheading Diffie-Hellman parameter generation -To generate parameters for Diffie-Hellman key exchange, use the command: +@subheading Obtaining Diffie-Hellman parameters +To obtain the RFC7919 parameters for Diffie-Hellman key exchange, use the command: @example -$ certtool --generate-dh-params --outfile dh.pem --sec-param medium +$ certtool --get-dh-params --outfile dh.pem --sec-param medium @end example +@subheading Verifying a certificate +To verify a certificate in a file against the system's CA trust store +use the following command: +@example +$ certtool --verify --infile cert.pem +@end example + +It is also possible to simulate hostname verification with the following +options: +@example +$ certtool --verify --verify-hostname www.example.com --infile cert.pem +@end example + + @subheading Proxy certificate generation Proxy certificate can be used to delegate your credential to a temporary, typically short-lived, certificate. To create one from the |