crl2pkcs7.pod revision 59191
1=pod 2 3=head1 NAME 4 5crl2pkcs7 - Create a PKCS#7 structure from a CRL and certificates. 6 7=head1 SYNOPSIS 8 9B<openssl> B<pkcs7> 10[B<-inform PEM|DER>] 11[B<-outform PEM|DER>] 12[B<-in filename>] 13[B<-out filename>] 14[B<-print_certs>] 15 16=head1 DESCRIPTION 17 18The B<crl2pkcs7> command takes an optional CRL and one or more 19certificates and converts them into a PKCS#7 degenerate "certificates 20only" structure. 21 22=head1 COMMAND OPTIONS 23 24=over 4 25 26=item B<-inform DER|PEM> 27 28This specifies the CRL input format. B<DER> format is DER encoded CRL 29structure.B<PEM> (the default) is a base64 encoded version of 30the DER form with header and footer lines. 31 32=item B<-outform DER|PEM> 33 34This specifies the PKCS#7 structure output format. B<DER> format is DER 35encoded PKCS#7 structure.B<PEM> (the default) is a base64 encoded version of 36the DER form with header and footer lines. 37 38=item B<-in filename> 39 40This specifies the input filename to read a CRL from or standard input if this 41option is not specified. 42 43=item B<-out filename> 44 45specifies the output filename to write the PKCS#7 structure to or standard 46output by default. 47 48=item B<-certfile filename> 49 50specifies a filename containing one or more certificates in B<PEM> format. 51All certificates in the file will be added to the PKCS#7 structure. This 52option can be used more than once to read certificates form multiple 53files. 54 55=item B<-nocrl> 56 57normally a CRL is included in the output file. With this option no CRL is 58included in the output file and a CRL is not read from the input file. 59 60=back 61 62=head1 EXAMPLES 63 64Create a PKCS#7 structure from a certificate and CRL: 65 66 openssl crl2pkcs7 -in crl.pem -certfile cert.pem -out p7.pem 67 68Creates a PKCS#7 structure in DER format with no CRL from several 69different certificates: 70 71 openssl crl2pkcs7 -nocrl -certfile newcert.pem 72 -certfile demoCA/cacert.pem -outform DER -out p7.der 73 74=head1 NOTES 75 76The output file is a PKCS#7 signed data structure containing no signers and 77just certificates and an optional CRL. 78 79This utility can be used to send certificates and CAs to Netscape as part of 80the certificate enrollment process. This involves sending the DER encoded output 81as MIME type application/x-x509-user-cert. 82 83The B<PEM> encoded form with the header and footer lines removed can be used to 84install user certificates and CAs in MSIE using the Xenroll control. 85 86=head1 SEE ALSO 87 88L<pkcs7(1)|pkcs7(1)> 89 90=cut 91