openssl-crl2pkcs7.1ossl 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. .\" -*- mode: troff; coding: utf-8 -*-
  2. .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43)
  3. .\"
  4. .\" Standard preamble:
  5. .\" ========================================================================
  6. .de Sp \" Vertical space (when we can't use .PP)
  7. .if t .sp .5v
  8. .if n .sp
  9. ..
  10. .de Vb \" Begin verbatim text
  11. .ft CW
  12. .nf
  13. .ne \\$1
  14. ..
  15. .de Ve \" End verbatim text
  16. .ft R
  17. .fi
  18. ..
  19. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
  20. .ie n \{\
  21. . ds C` ""
  22. . ds C' ""
  23. 'br\}
  24. .el\{\
  25. . ds C`
  26. . ds C'
  27. 'br\}
  28. .\"
  29. .\" Escape single quotes in literal strings from groff's Unicode transform.
  30. .ie \n(.g .ds Aq \(aq
  31. .el .ds Aq '
  32. .\"
  33. .\" If the F register is >0, we'll generate index entries on stderr for
  34. .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
  35. .\" entries marked with X<> in POD. Of course, you'll have to process the
  36. .\" output yourself in some meaningful fashion.
  37. .\"
  38. .\" Avoid warning from groff about undefined register 'F'.
  39. .de IX
  40. ..
  41. .nr rF 0
  42. .if \n(.g .if rF .nr rF 1
  43. .if (\n(rF:(\n(.g==0)) \{\
  44. . if \nF \{\
  45. . de IX
  46. . tm Index:\\$1\t\\n%\t"\\$2"
  47. ..
  48. . if !\nF==2 \{\
  49. . nr % 0
  50. . nr F 2
  51. . \}
  52. . \}
  53. .\}
  54. .rr rF
  55. .\" ========================================================================
  56. .\"
  57. .IX Title "OPENSSL-CRL2PKCS7 1ossl"
  58. .TH OPENSSL-CRL2PKCS7 1ossl 2025-01-17 3.4.0 OpenSSL
  59. .\" For nroff, turn off justification. Always turn off hyphenation; it makes
  60. .\" way too many mistakes in technical documents.
  61. .if n .ad l
  62. .nh
  63. .SH NAME
  64. openssl\-crl2pkcs7 \- Create a PKCS#7 structure from a CRL and certificates
  65. .SH SYNOPSIS
  66. .IX Header "SYNOPSIS"
  67. \&\fBopenssl\fR \fBcrl2pkcs7\fR
  68. [\fB\-help\fR]
  69. [\fB\-inform\fR \fBDER\fR|\fBPEM\fR]
  70. [\fB\-outform\fR \fBDER\fR|\fBPEM\fR]
  71. [\fB\-in\fR \fIfilename\fR]
  72. [\fB\-out\fR \fIfilename\fR]
  73. [\fB\-certfile\fR \fIfilename\fR]
  74. [\fB\-nocrl\fR]
  75. [\fB\-provider\fR \fIname\fR]
  76. [\fB\-provider\-path\fR \fIpath\fR]
  77. [\fB\-propquery\fR \fIpropq\fR]
  78. .SH DESCRIPTION
  79. .IX Header "DESCRIPTION"
  80. This command takes an optional CRL and one or more
  81. certificates and converts them into a PKCS#7 degenerate "certificates
  82. only" structure.
  83. .SH OPTIONS
  84. .IX Header "OPTIONS"
  85. .IP \fB\-help\fR 4
  86. .IX Item "-help"
  87. Print out a usage message.
  88. .IP "\fB\-inform\fR \fBDER\fR|\fBPEM\fR" 4
  89. .IX Item "-inform DER|PEM"
  90. The input format of the CRL; the default is \fBPEM\fR.
  91. See \fBopenssl\-format\-options\fR\|(1) for details.
  92. .IP "\fB\-outform\fR \fBDER\fR|\fBPEM\fR" 4
  93. .IX Item "-outform DER|PEM"
  94. The output format of the PKCS#7 object; the default is \fBPEM\fR.
  95. See \fBopenssl\-format\-options\fR\|(1) for details.
  96. .IP "\fB\-in\fR \fIfilename\fR" 4
  97. .IX Item "-in filename"
  98. This specifies the input filename to read a CRL from or standard input if this
  99. option is not specified.
  100. .IP "\fB\-out\fR \fIfilename\fR" 4
  101. .IX Item "-out filename"
  102. Specifies the output filename to write the PKCS#7 structure to or standard
  103. output by default.
  104. .IP "\fB\-certfile\fR \fIfilename\fR" 4
  105. .IX Item "-certfile filename"
  106. Specifies a filename containing one or more certificates in \fBPEM\fR format.
  107. All certificates in the file will be added to the PKCS#7 structure. This
  108. option can be used more than once to read certificates from multiple
  109. files.
  110. .IP \fB\-nocrl\fR 4
  111. .IX Item "-nocrl"
  112. Normally a CRL is included in the output file. With this option no CRL is
  113. included in the output file and a CRL is not read from the input file.
  114. .IP "\fB\-provider\fR \fIname\fR" 4
  115. .IX Item "-provider name"
  116. .PD 0
  117. .IP "\fB\-provider\-path\fR \fIpath\fR" 4
  118. .IX Item "-provider-path path"
  119. .IP "\fB\-propquery\fR \fIpropq\fR" 4
  120. .IX Item "-propquery propq"
  121. .PD
  122. See "Provider Options" in \fBopenssl\fR\|(1), \fBprovider\fR\|(7), and \fBproperty\fR\|(7).
  123. .SH EXAMPLES
  124. .IX Header "EXAMPLES"
  125. Create a PKCS#7 structure from a certificate and CRL:
  126. .PP
  127. .Vb 1
  128. \& openssl crl2pkcs7 \-in crl.pem \-certfile cert.pem \-out p7.pem
  129. .Ve
  130. .PP
  131. Creates a PKCS#7 structure in DER format with no CRL from several
  132. different certificates:
  133. .PP
  134. .Vb 2
  135. \& openssl crl2pkcs7 \-nocrl \-certfile newcert.pem
  136. \& \-certfile demoCA/cacert.pem \-outform DER \-out p7.der
  137. .Ve
  138. .SH NOTES
  139. .IX Header "NOTES"
  140. The output file is a PKCS#7 signed data structure containing no signers and
  141. just certificates and an optional CRL.
  142. .PP
  143. This command can be used to send certificates and CAs to Netscape as part of
  144. the certificate enrollment process. This involves sending the DER encoded output
  145. as MIME type application/x\-x509\-user\-cert.
  146. .PP
  147. The \fBPEM\fR encoded form with the header and footer lines removed can be used to
  148. install user certificates and CAs in MSIE using the Xenroll control.
  149. .SH "SEE ALSO"
  150. .IX Header "SEE ALSO"
  151. \&\fBopenssl\fR\|(1),
  152. \&\fBopenssl\-pkcs7\fR\|(1)
  153. .SH COPYRIGHT
  154. .IX Header "COPYRIGHT"
  155. Copyright 2000\-2021 The OpenSSL Project Authors. All Rights Reserved.
  156. .PP
  157. Licensed under the Apache License 2.0 (the "License"). You may not use
  158. this file except in compliance with the License. You can obtain a copy
  159. in the file LICENSE in the source distribution or at
  160. <https://www.openssl.org/source/license.html>.