{
    "content": [
        {
            "type": "text",
            "text": "# openssl-crl2pkcs7 (man)\n\n## NAME\n\nopenssl-crl2pkcs7 - Create a PKCS#7 structure from a CRL and certificates\n\n## SYNOPSIS\n\nopenssl crl2pkcs7 [-help] [-inform DER|PEM] [-outform DER|PEM] [-in filename] [-out filename]\n[-certfile filename] [-nocrl] [-provider name] [-provider-path path] [-propquery propq]\n\n## DESCRIPTION\n\nThis command takes an optional CRL and one or more certificates and converts them into a\nPKCS#7 degenerate \"certificates only\" structure.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (10 subsections)\n- **EXAMPLES**\n- **NOTES**\n- **SEE ALSO**\n- **COPYRIGHT**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "openssl-crl2pkcs7",
        "section": "",
        "mode": "man",
        "summary": "openssl-crl2pkcs7 - Create a PKCS#7 structure from a CRL and certificates",
        "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]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "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"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-help",
                        "lines": 2
                    },
                    {
                        "name": "-inform DER",
                        "lines": 3
                    },
                    {
                        "name": "-outform DER",
                        "lines": 3
                    },
                    {
                        "name": "-in _",
                        "lines": 3
                    },
                    {
                        "name": "-out _",
                        "lines": 3
                    },
                    {
                        "name": "-certfile _",
                        "lines": 4
                    },
                    {
                        "name": "-nocrl",
                        "lines": 3
                    },
                    {
                        "name": "-provider _",
                        "lines": 1
                    },
                    {
                        "name": "-provider-path _",
                        "lines": 1
                    },
                    {
                        "name": "-propquery _",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "EXAMPLES",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "NOTES",
                "lines": 10,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 7,
                "subsections": []
            }
        ],
        "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 DER",
                        "content": "The  input  format  of  the  CRL;  the default is PEM.  See openssl-format-options(1) for\ndetails.\n"
                    },
                    {
                        "name": "-outform DER",
                        "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\n3.0.13                                       2026-07-29                      OPENSSL-CRL2PKCS7(1SSL)",
                "subsections": []
            }
        }
    }
}