summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/usr.bin/openssl/openssl.175
1 files changed, 18 insertions, 57 deletions
diff --git a/src/usr.bin/openssl/openssl.1 b/src/usr.bin/openssl/openssl.1
index 047c3a186e..1d77ad9219 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.39 2016/07/21 18:40:26 jmc Exp $ 1.\" $OpenBSD: openssl.1,v 1.40 2016/07/23 19:31:35 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 21 2016 $ 115.Dd $Mdocdate: July 23 2016 $
116.Dt OPENSSL 1 116.Dt OPENSSL 1
117.Os 117.Os
118.Sh NAME 118.Sh NAME
@@ -1017,20 +1017,15 @@ The output format.
1017.It Fl text 1017.It Fl text
1018Print out the CRL in text form. 1018Print out the CRL in text form.
1019.El 1019.El
1020.\"
1021.\" CRL2PKCS7
1022.\"
1023.Sh CRL2PKCS7 1020.Sh CRL2PKCS7
1024.nr nS 1 1021.nr nS 1
1025.Nm "openssl crl2pkcs7" 1022.Nm "openssl crl2pkcs7"
1026.Bk -words
1027.Op Fl certfile Ar file 1023.Op Fl certfile Ar file
1028.Op Fl in Ar file 1024.Op Fl in Ar file
1029.Op Fl inform Ar DER | PEM 1025.Op Fl inform Cm der | pem
1030.Op Fl nocrl 1026.Op Fl nocrl
1031.Op Fl out Ar file 1027.Op Fl out Ar file
1032.Op Fl outform Ar DER | PEM 1028.Op Fl outform Cm der | pem
1033.Ek
1034.nr nS 0 1029.nr nS 0
1035.Pp 1030.Pp
1036The 1031The
@@ -1043,62 +1038,28 @@ structure.
1043The options are as follows: 1038The options are as follows:
1044.Bl -tag -width Ds 1039.Bl -tag -width Ds
1045.It Fl certfile Ar file 1040.It Fl certfile Ar file
1046Specifies a 1041Add the certificates in PEM
1047.Ar file 1042.Ar file
1048containing one or more certificates in PEM format. 1043to the PKCS#7 structure.
1049All certificates in the file will be added to the PKCS#7 structure. 1044This option can be used more than once
1050This option can be used more than once to read certificates from multiple 1045to read certificates from multiple files.
1051files.
1052.It Fl in Ar file 1046.It Fl in Ar file
1053This specifies the input 1047Read the CRL from
1054.Ar file 1048.Ar file ,
1055to read a CRL from, or standard input if this option is not specified. 1049or standard input if not specified.
1056.It Fl inform Ar DER | PEM 1050.It Fl inform Cm der | pem
1057This specifies the CRL input format. 1051Specify the CRL input format.
1058.Ar DER
1059format is a DER-encoded CRL structure.
1060.Ar PEM
1061.Pq the default
1062is a base64-encoded version of the DER form with header and footer lines.
1063.It Fl nocrl 1052.It Fl nocrl
1064Normally, a CRL is included in the output file. 1053Normally, a CRL is included in the output file.
1065With this option, no CRL is 1054With this option, no CRL is
1066included in the output file and a CRL is not read from the input file. 1055included in the output file and a CRL is not read from the input file.
1067.It Fl out Ar file 1056.It Fl out Ar file
1068Specifies the output 1057Write the PKCS#7 structure to
1069.Ar file 1058.Ar file ,
1070to write the PKCS#7 structure to, or standard output by default. 1059or standard output if not specified.
1071.It Fl outform Ar DER | PEM 1060.It Fl outform Cm der | pem
1072This specifies the PKCS#7 structure output format. 1061Specify the PKCS#7 structure output format.
1073.Ar DER
1074format is a DER-encoded PKCS#7 structure.
1075.Ar PEM
1076.Pq the default
1077is a base64-encoded version of the DER form with header and footer lines.
1078.El 1062.El
1079.Sh CRL2PKCS7 EXAMPLES
1080Create a PKCS#7 structure from a certificate and CRL:
1081.Pp
1082.Dl $ openssl crl2pkcs7 -in crl.pem -certfile cert.pem -out p7.pem
1083.Pp
1084Create a PKCS#7 structure in DER format with no CRL from several
1085different certificates:
1086.Bd -literal -offset indent
1087$ openssl crl2pkcs7 -nocrl -certfile newcert.pem \e
1088 -certfile demoCA/cacert.pem -outform DER -out p7.der
1089.Ed
1090.Sh CRL2PKCS7 NOTES
1091The output file is a PKCS#7 signed data structure containing no signers and
1092just certificates and an optional CRL.
1093.Pp
1094This utility can be used to send certificates and CAs to Netscape as part of
1095the certificate enrollment process.
1096This involves sending the DER-encoded output
1097as MIME type
1098.Em application/x-x509-user-cert .
1099.Pp
1100The PEM-encoded form with the header and footer lines removed can be used to
1101install user certificates and CAs in MSIE using the Xenroll control.
1102.\" 1063.\"
1103.\" DGST 1064.\" DGST
1104.\" 1065.\"