{
    "mode": "man",
    "parameter": "openssl-spkac",
    "section": "1ssl",
    "url": "https://www.chedong.com/phpMan.php/man/openssl-spkac/1ssl/json",
    "generated": "2026-06-03T01:48:47Z",
    "synopsis": "openssl spkac [-help] [-in filename] [-out filename] [-digest digest] [-key filename|uri]\n[-keyform DER|PEM|P12|ENGINE] [-passin arg] [-challenge string] [-pubkey] [-spkac spkacname]\n[-spksect section] [-noout] [-verify] [-engine id] [-provider name] [-provider-path path]\n[-propquery propq]",
    "sections": {
        "NAME": {
            "content": "openssl-spkac - SPKAC printing and generating command\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "openssl spkac [-help] [-in filename] [-out filename] [-digest digest] [-key filename|uri]\n[-keyform DER|PEM|P12|ENGINE] [-passin arg] [-challenge string] [-pubkey] [-spkac spkacname]\n[-spksect section] [-noout] [-verify] [-engine id] [-provider name] [-provider-path path]\n[-propquery propq]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This command processes Netscape signed public key and challenge (SPKAC) files. It can print\nout their contents, verify the signature and produce its own SPKACs from a supplied private\nkey.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-help",
                    "content": "Print out a usage message.\n"
                },
                {
                    "name": "-in",
                    "content": "This specifies the input filename to read from or standard input if this option is not\nspecified. Ignored if the -key option is used.\n"
                },
                {
                    "name": "-out",
                    "content": "Specifies the output filename to write to or standard output by default.\n"
                },
                {
                    "name": "-digest",
                    "content": "Use the specified digest to sign a created SPKAC file.  The default digest algorithm is\nMD5.\n"
                },
                {
                    "name": "-key",
                    "content": "Create an SPKAC file using the private key specified by filename or uri.  The -in,\n-noout, -spksect and -verify options are ignored if present.\n"
                },
                {
                    "name": "-keyform",
                    "content": "The key format; unspecified by default.  See openssl-format-options(1) for details.\n"
                },
                {
                    "name": "-passin",
                    "content": "The input file password source. For more information about the format of arg see\nopenssl-passphrase-options(1).\n"
                },
                {
                    "name": "-challenge",
                    "content": "Specifies the challenge string if an SPKAC is being created.\n"
                },
                {
                    "name": "-spkac",
                    "content": "Allows an alternative name form the variable containing the SPKAC. The default is\n\"SPKAC\". This option affects both generated and input SPKAC files.\n"
                },
                {
                    "name": "-spksect",
                    "content": "Allows an alternative name form the section containing the SPKAC. The default is the\ndefault section.\n"
                },
                {
                    "name": "-noout",
                    "content": "Don't output the text version of the SPKAC (not used if an SPKAC is being created).\n"
                },
                {
                    "name": "-pubkey",
                    "content": "Output the public key of an SPKAC (not used if an SPKAC is being created).\n"
                },
                {
                    "name": "-verify",
                    "content": "Verifies the digital signature on the supplied SPKAC.\n"
                },
                {
                    "name": "-engine",
                    "content": "See \"Engine Options\" in openssl(1).  This option is deprecated.\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": "Print out the contents of an SPKAC:\n\nopenssl spkac -in spkac.cnf\n\nVerify the signature of an SPKAC:\n\nopenssl spkac -in spkac.cnf -noout -verify\n\nCreate an SPKAC using the challenge string \"hello\":\n\nopenssl spkac -key key.pem -challenge hello -out spkac.cnf\n\nExample of an SPKAC, (long lines split up for clarity):\n\nSPKAC=MIG5MGUwXDANBgkqhkiG9w0BAQEFAANLADBIAkEA\\\n1cCoq2Wa3Ixs47uI7FPVwHVIPDx5yso105Y6zpozam135a\\\n8R0CpoRvkkigIyXfcCjiVi5oWk+6FfPaD03uPFoQIDAQAB\\\nFgVoZWxsbzANBgkqhkiG9w0BAQQFAANBAFpQtY/FojdwkJ\\\nh1bEIYuc2EeM2KHTWPEepWYeawvHD0gQ3DngSC75YCWnnD\\\ndq+NQ3F+X4deMx9AaEglZtULwV4=\n",
            "subsections": []
        },
        "NOTES": {
            "content": "A created SPKAC with suitable DN components appended can be fed to openssl-ca(1).\n\nSPKACs are typically generated by Netscape when a form is submitted containing the KEYGEN tag\nas part of the certificate enrollment process.\n\nThe challenge string permits a primitive form of proof of possession of private key. By\nchecking the SPKAC signature and a random challenge string some guarantee is given that the\nuser knows the private key corresponding to the public key being certified. This is important\nin some applications. Without this it is possible for a previous SPKAC to be used in a\n\"replay attack\".\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "openssl(1), openssl-ca(1)\n",
            "subsections": []
        },
        "HISTORY": {
            "content": "The -engine option was deprecated in OpenSSL 3.0.\n\nThe -digest option was added in OpenSSL 3.0.\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-04-07                          OPENSSL-SPKAC(1SSL)",
            "subsections": []
        }
    },
    "summary": "openssl-spkac - SPKAC printing and generating command",
    "flags": [
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Print out a usage message."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "This specifies the input filename to read from or standard input if this option is not specified. Ignored if the -key option is used."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Specifies the output filename to write to or standard output by default."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Use the specified digest to sign a created SPKAC file. The default digest algorithm is MD5."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Create an SPKAC file using the private key specified by filename or uri. The -in, -noout, -spksect and -verify options are ignored if present."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "The key format; unspecified by default. See openssl-format-options(1) for details."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "The input file password source. For more information about the format of arg see openssl-passphrase-options(1)."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Specifies the challenge string if an SPKAC is being created."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Allows an alternative name form the variable containing the SPKAC. The default is \"SPKAC\". This option affects both generated and input SPKAC files."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Allows an alternative name form the section containing the SPKAC. The default is the default section."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Don't output the text version of the SPKAC (not used if an SPKAC is being created)."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Output the public key of an SPKAC (not used if an SPKAC is being created)."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Verifies the digital signature on the supplied SPKAC."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "See \"Engine Options\" in openssl(1). This option is deprecated."
        },
        {
            "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": [
        "Print out the contents of an SPKAC:",
        "openssl spkac -in spkac.cnf",
        "Verify the signature of an SPKAC:",
        "openssl spkac -in spkac.cnf -noout -verify",
        "Create an SPKAC using the challenge string \"hello\":",
        "openssl spkac -key key.pem -challenge hello -out spkac.cnf",
        "Example of an SPKAC, (long lines split up for clarity):",
        "SPKAC=MIG5MGUwXDANBgkqhkiG9w0BAQEFAANLADBIAkEA\\",
        "1cCoq2Wa3Ixs47uI7FPVwHVIPDx5yso105Y6zpozam135a\\",
        "8R0CpoRvkkigIyXfcCjiVi5oWk+6FfPaD03uPFoQIDAQAB\\",
        "FgVoZWxsbzANBgkqhkiG9w0BAQQFAANBAFpQtY/FojdwkJ\\",
        "h1bEIYuc2EeM2KHTWPEepWYeawvHD0gQ3DngSC75YCWnnD\\",
        "dq+NQ3F+X4deMx9AaEglZtULwV4="
    ],
    "see_also": [
        {
            "name": "openssl",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/openssl/1/json"
        },
        {
            "name": "openssl-ca",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/openssl-ca/1/json"
        }
    ]
}