summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/usr.bin/openssl/openssl.162
1 files changed, 21 insertions, 41 deletions
diff --git a/src/usr.bin/openssl/openssl.1 b/src/usr.bin/openssl/openssl.1
index b8bf67565e..52949f6bd2 100644
--- a/src/usr.bin/openssl/openssl.1
+++ b/src/usr.bin/openssl/openssl.1
@@ -1,4 +1,4 @@
1.\" $OpenBSD: openssl.1,v 1.36 2016/07/20 14:42:03 jmc Exp $ 1.\" $OpenBSD: openssl.1,v 1.37 2016/07/21 16:34:08 jmc Exp $
2.\" ==================================================================== 2.\" ====================================================================
3.\" Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. 3.\" Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
4.\" 4.\"
@@ -112,7 +112,7 @@
112.\" 112.\"
113.\" OPENSSL 113.\" OPENSSL
114.\" 114.\"
115.Dd $Mdocdate: July 20 2016 $ 115.Dd $Mdocdate: July 21 2016 $
116.Dt OPENSSL 1 116.Dt OPENSSL 1
117.Os 117.Os
118.Sh NAME 118.Sh NAME
@@ -963,13 +963,9 @@ Cipher suites using MD5.
963.It Cm SHA1 , SHA 963.It Cm SHA1 , SHA
964Cipher suites using SHA1. 964Cipher suites using SHA1.
965.El 965.El
966.\"
967.\" CRL
968.\"
969.Sh CRL 966.Sh CRL
970.nr nS 1 967.nr nS 1
971.Nm "openssl crl" 968.Nm "openssl crl"
972.Bk -words
973.Op Fl CAfile Ar file 969.Op Fl CAfile Ar file
974.Op Fl CApath Ar dir 970.Op Fl CApath Ar dir
975.Op Fl fingerprint 971.Op Fl fingerprint
@@ -983,13 +979,23 @@ Cipher suites using SHA1.
983.Op Fl out Ar file 979.Op Fl out Ar file
984.Op Fl outform Ar DER | PEM 980.Op Fl outform Ar DER | PEM
985.Op Fl text 981.Op Fl text
986.Ek
987.nr nS 0 982.nr nS 0
988.Pp 983.Pp
989The 984The
990.Nm crl 985.Nm crl
991command processes CRL files in DER or PEM format. 986command processes CRL files in DER or PEM format.
992.Pp 987.Pp
988.Cm DER
989is a DER-encoded CRL structure.
990.Cm PEM ,
991the default,
992is a base64-encoded version of the DER form with header and footer lines.
993The PEM CRL format uses the header and footer lines:
994.Bd -unfilled -offset indent
995-----BEGIN X509 CRL-----
996-----END X509 CRL-----
997.Ed
998.Pp
993The options are as follows: 999The options are as follows:
994.Bl -tag -width Ds 1000.Bl -tag -width Ds
995.It Fl CAfile Ar file 1001.It Fl CAfile Ar file
@@ -1008,54 +1014,28 @@ Print the CRL fingerprint.
1008Output a hash of the issuer name. 1014Output a hash of the issuer name.
1009This can be used to look up CRLs in a directory by issuer name. 1015This can be used to look up CRLs in a directory by issuer name.
1010.It Fl in Ar file 1016.It Fl in Ar file
1011This specifies the input file to read from, or standard input if this 1017The input file to read from, or standard input if not specified.
1012option is not specified. 1018.It Fl inform Cm DER | PEM
1013.It Fl inform Ar DER | PEM 1019The input format.
1014This specifies the input format.
1015.Ar DER
1016format is a DER-encoded CRL structure.
1017.Ar PEM
1018.Pq the default
1019is a base64-encoded version of the DER form with header and footer lines.
1020.It Fl issuer 1020.It Fl issuer
1021Output the issuer name. 1021Output the issuer name.
1022.It Fl lastupdate 1022.It Fl lastupdate
1023Output the 1023Output the
1024.Ar lastUpdate 1024.Cm lastUpdate
1025field. 1025field.
1026.It Fl nextupdate 1026.It Fl nextupdate
1027Output the 1027Output the
1028.Ar nextUpdate 1028.Cm nextUpdate
1029field. 1029field.
1030.It Fl noout 1030.It Fl noout
1031Don't output the encoded version of the CRL. 1031Don't output the encoded version of the CRL.
1032.It Fl out Ar file 1032.It Fl out Ar file
1033Specifies the output file to write to, or standard output by 1033The output file to write to, or standard output if not specified.
1034default. 1034.It Fl outform Cm DER | PEM
1035.It Fl outform Ar DER | PEM 1035The output format.
1036This specifies the output format; the options have the same meaning as the
1037.Fl inform
1038option.
1039.It Fl text 1036.It Fl text
1040Print out the CRL in text form. 1037Print out the CRL in text form.
1041.El 1038.El
1042.Sh CRL NOTES
1043The PEM CRL format uses the header and footer lines:
1044.Bd -unfilled -offset indent
1045-----BEGIN X509 CRL-----
1046-----END X509 CRL-----
1047.Ed
1048.Sh CRL EXAMPLES
1049Convert a CRL file from PEM to DER:
1050.Pp
1051.Dl $ openssl crl -in crl.pem -outform DER -out crl.der
1052.Pp
1053Output the text form of a DER-encoded certificate:
1054.Pp
1055.Dl $ openssl crl -in crl.der -inform DER -text -noout
1056.Sh CRL BUGS
1057Ideally, it should be possible to create a CRL using appropriate options
1058and files too.
1059.\" 1039.\"
1060.\" CRL2PKCS7 1040.\" CRL2PKCS7
1061.\" 1041.\"