diff options
-rw-r--r-- | src/usr.bin/openssl/openssl.1 | 75 |
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 |
1018 | Print out the CRL in text form. | 1018 | Print 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 |
1036 | The | 1031 | The |
@@ -1043,62 +1038,28 @@ structure. | |||
1043 | The options are as follows: | 1038 | The 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 |
1046 | Specifies a | 1041 | Add the certificates in PEM |
1047 | .Ar file | 1042 | .Ar file |
1048 | containing one or more certificates in PEM format. | 1043 | to the PKCS#7 structure. |
1049 | All certificates in the file will be added to the PKCS#7 structure. | 1044 | This option can be used more than once |
1050 | This option can be used more than once to read certificates from multiple | 1045 | to read certificates from multiple files. |
1051 | files. | ||
1052 | .It Fl in Ar file | 1046 | .It Fl in Ar file |
1053 | This specifies the input | 1047 | Read the CRL from |
1054 | .Ar file | 1048 | .Ar file , |
1055 | to read a CRL from, or standard input if this option is not specified. | 1049 | or standard input if not specified. |
1056 | .It Fl inform Ar DER | PEM | 1050 | .It Fl inform Cm der | pem |
1057 | This specifies the CRL input format. | 1051 | Specify the CRL input format. |
1058 | .Ar DER | ||
1059 | format is a DER-encoded CRL structure. | ||
1060 | .Ar PEM | ||
1061 | .Pq the default | ||
1062 | is a base64-encoded version of the DER form with header and footer lines. | ||
1063 | .It Fl nocrl | 1052 | .It Fl nocrl |
1064 | Normally, a CRL is included in the output file. | 1053 | Normally, a CRL is included in the output file. |
1065 | With this option, no CRL is | 1054 | With this option, no CRL is |
1066 | included in the output file and a CRL is not read from the input file. | 1055 | included 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 |
1068 | Specifies the output | 1057 | Write the PKCS#7 structure to |
1069 | .Ar file | 1058 | .Ar file , |
1070 | to write the PKCS#7 structure to, or standard output by default. | 1059 | or standard output if not specified. |
1071 | .It Fl outform Ar DER | PEM | 1060 | .It Fl outform Cm der | pem |
1072 | This specifies the PKCS#7 structure output format. | 1061 | Specify the PKCS#7 structure output format. |
1073 | .Ar DER | ||
1074 | format is a DER-encoded PKCS#7 structure. | ||
1075 | .Ar PEM | ||
1076 | .Pq the default | ||
1077 | is a base64-encoded version of the DER form with header and footer lines. | ||
1078 | .El | 1062 | .El |
1079 | .Sh CRL2PKCS7 EXAMPLES | ||
1080 | Create 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 | ||
1084 | Create a PKCS#7 structure in DER format with no CRL from several | ||
1085 | different 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 | ||
1091 | The output file is a PKCS#7 signed data structure containing no signers and | ||
1092 | just certificates and an optional CRL. | ||
1093 | .Pp | ||
1094 | This utility can be used to send certificates and CAs to Netscape as part of | ||
1095 | the certificate enrollment process. | ||
1096 | This involves sending the DER-encoded output | ||
1097 | as MIME type | ||
1098 | .Em application/x-x509-user-cert . | ||
1099 | .Pp | ||
1100 | The PEM-encoded form with the header and footer lines removed can be used to | ||
1101 | install user certificates and CAs in MSIE using the Xenroll control. | ||
1102 | .\" | 1063 | .\" |
1103 | .\" DGST | 1064 | .\" DGST |
1104 | .\" | 1065 | .\" |