{
    "mode": "man",
    "parameter": "openssl-crl2pkcs7",
    "section": "1ssl",
    "url": "https://www.chedong.com/phpMan.php/man/openssl-crl2pkcs7/1ssl/json",
    "generated": "2026-06-14T12:49:23Z",
    "synopsis": "openssl crl2pkcs7 [-help] [-inform DER|PEM] [-outform DER|PEM] [-in filename] [-out filename]\n[-certfile filename] [-nocrl] [-provider name] [-provider-path path] [-propquery propq]",
    "sections": {
        "NAME": {
            "content": "openssl-crl2pkcs7 - Create a PKCS#7 structure from a CRL and certificates\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "openssl crl2pkcs7 [-help] [-inform DER|PEM] [-outform DER|PEM] [-in filename] [-out filename]\n[-certfile filename] [-nocrl] [-provider name] [-provider-path path] [-propquery propq]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This command takes an optional CRL and one or more certificates and converts them into a\nPKCS#7 degenerate \"certificates only\" structure.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-help",
                    "content": "Print out a usage message.\n"
                },
                {
                    "name": "-inform",
                    "content": "The input format of the CRL; the default is PEM.  See openssl-format-options(1) for\ndetails.\n"
                },
                {
                    "name": "-outform",
                    "content": "The output format of the PKCS#7 object; the default is PEM.  See\nopenssl-format-options(1) for details.\n"
                },
                {
                    "name": "-in",
                    "content": "This specifies the input filename to read a CRL from or standard input if this option is\nnot specified.\n"
                },
                {
                    "name": "-out",
                    "content": "Specifies the output filename to write the PKCS#7 structure to or standard output by\ndefault.\n"
                },
                {
                    "name": "-certfile",
                    "content": "Specifies a filename containing one or more certificates in PEM format.  All certificates\nin the file will be added to the PKCS#7 structure. This option can be used more than once\nto read certificates from multiple files.\n"
                },
                {
                    "name": "-nocrl",
                    "content": "Normally a CRL is included in the output file. With this option no CRL is included in the\noutput file and a CRL is not read from the input file.\n"
                },
                {
                    "name": "-provider",
                    "content": ""
                },
                {
                    "name": "-provider-path",
                    "content": ""
                },
                {
                    "name": "-propquery",
                    "content": "See \"Provider Options\" in openssl(1), provider(7), and property(7).\n"
                }
            ]
        },
        "EXAMPLES": {
            "content": "Create a PKCS#7 structure from a certificate and CRL:\n\nopenssl crl2pkcs7 -in crl.pem -certfile cert.pem -out p7.pem\n\nCreates a PKCS#7 structure in DER format with no CRL from several different certificates:\n\nopenssl crl2pkcs7 -nocrl -certfile newcert.pem\n-certfile demoCA/cacert.pem -outform DER -out p7.der\n",
            "subsections": []
        },
        "NOTES": {
            "content": "The output file is a PKCS#7 signed data structure containing no signers and just certificates\nand an optional CRL.\n\nThis command can be used to send certificates and CAs to Netscape as part of the certificate\nenrollment process. This involves sending the DER encoded output as MIME type\napplication/x-x509-user-cert.\n\nThe PEM encoded form with the header and footer lines removed can be used to install user\ncertificates and CAs in MSIE using the Xenroll control.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "openssl(1), openssl-pkcs7(1)\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.\n\nLicensed under the Apache License 2.0 (the \"License\").  You may not use this file except in\ncompliance with the License.  You can obtain a copy in the file LICENSE in the source\ndistribution or at <https://www.openssl.org/source/license.html>.\n\n\n\n3.0.2                                        2026-06-02                      OPENSSL-CRL2PKCS7(1SSL)",
            "subsections": []
        }
    },
    "summary": "openssl-crl2pkcs7 - Create a PKCS#7 structure from a CRL and certificates",
    "flags": [
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Print out a usage message."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "The input format of the CRL; the default is PEM. See openssl-format-options(1) for details."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "The output format of the PKCS#7 object; the default is PEM. See openssl-format-options(1) for details."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "This specifies the input filename to read a CRL from or standard input if this option is not specified."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Specifies the output filename to write the PKCS#7 structure to or standard output by default."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Specifies a filename containing one or more certificates in PEM format. All certificates in the file will be added to the PKCS#7 structure. This option can be used more than once to read certificates from multiple files."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Normally a CRL is included in the output file. With this option no CRL is included in the output file and a CRL is not read from the input file."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "See \"Provider Options\" in openssl(1), provider(7), and property(7)."
        }
    ],
    "examples": [
        "Create a PKCS#7 structure from a certificate and CRL:",
        "openssl crl2pkcs7 -in crl.pem -certfile cert.pem -out p7.pem",
        "Creates a PKCS#7 structure in DER format with no CRL from several different certificates:",
        "openssl crl2pkcs7 -nocrl -certfile newcert.pem",
        "-certfile demoCA/cacert.pem -outform DER -out p7.der"
    ],
    "see_also": [
        {
            "name": "openssl",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/openssl/1/json"
        },
        {
            "name": "openssl-pkcs7",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/openssl-pkcs7/1/json"
        }
    ]
}