Home | History | Annotate | Line # | Download | only in man1
      1 =pod
      2 {- OpenSSL::safe::output_do_not_edit_headers(); -}
      3 
      4 =head1 NAME
      5 
      6 openssl-crl2pkcs7 - Create a PKCS#7 structure from a CRL and certificates
      7 
      8 =head1 SYNOPSIS
      9 
     10 B<openssl> B<crl2pkcs7>
     11 [B<-help>]
     12 [B<-inform> B<DER>|B<PEM>]
     13 [B<-outform> B<DER>|B<PEM>]
     14 [B<-in> I<filename>]
     15 [B<-out> I<filename>]
     16 [B<-certfile> I<filename>]
     17 [B<-nocrl>]
     18 {- $OpenSSL::safe::opt_provider_synopsis -}
     19 
     20 =head1 DESCRIPTION
     21 
     22 This command takes an optional CRL and one or more
     23 certificates and converts them into a PKCS#7 degenerate "certificates
     24 only" structure.
     25 
     26 =head1 OPTIONS
     27 
     28 =over 4
     29 
     30 =item B<-help>
     31 
     32 Print out a usage message.
     33 
     34 =item B<-inform> B<DER>|B<PEM>
     35 
     36 The input format of the CRL; the default is B<PEM>.
     37 See L<openssl-format-options(1)> for details.
     38 
     39 =item B<-outform> B<DER>|B<PEM>
     40 
     41 The output format of the PKCS#7 object; the default is B<PEM>.
     42 See L<openssl-format-options(1)> for details.
     43 
     44 =item B<-in> I<filename>
     45 
     46 This specifies the input filename to read a CRL from or standard input if this
     47 option is not specified.
     48 
     49 =item B<-out> I<filename>
     50 
     51 Specifies the output filename to write the PKCS#7 structure to or standard
     52 output by default.
     53 
     54 =item B<-certfile> I<filename>
     55 
     56 Specifies a filename containing one or more certificates in B<PEM> format.
     57 All certificates in the file will be added to the PKCS#7 structure. This
     58 option can be used more than once to read certificates from multiple
     59 files.
     60 
     61 =item B<-nocrl>
     62 
     63 Normally a CRL is included in the output file. With this option no CRL is
     64 included in the output file and a CRL is not read from the input file.
     65 
     66 {- $OpenSSL::safe::opt_provider_item -}
     67 
     68 =back
     69 
     70 =head1 EXAMPLES
     71 
     72 Create a PKCS#7 structure from a certificate and CRL:
     73 
     74  openssl crl2pkcs7 -in crl.pem -certfile cert.pem -out p7.pem
     75 
     76 Creates a PKCS#7 structure in DER format with no CRL from several
     77 different certificates:
     78 
     79  openssl crl2pkcs7 -nocrl -certfile newcert.pem
     80         -certfile demoCA/cacert.pem -outform DER -out p7.der
     81 
     82 =head1 NOTES
     83 
     84 The output file is a PKCS#7 signed data structure containing no signers and
     85 just certificates and an optional CRL.
     86 
     87 This command can be used to send certificates and CAs to Netscape as part of
     88 the certificate enrollment process. This involves sending the DER encoded output
     89 as MIME type application/x-x509-user-cert.
     90 
     91 The B<PEM> encoded form with the header and footer lines removed can be used to
     92 install user certificates and CAs in MSIE using the Xenroll control.
     93 
     94 =head1 SEE ALSO
     95 
     96 L<openssl(1)>,
     97 L<openssl-pkcs7(1)>
     98 
     99 =head1 COPYRIGHT
    100 
    101 Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
    102 
    103 Licensed under the Apache License 2.0 (the "License").  You may not use
    104 this file except in compliance with the License.  You can obtain a copy
    105 in the file LICENSE in the source distribution or at
    106 L<https://www.openssl.org/source/license.html>.
    107 
    108 =cut
    109