{
    "mode": "man",
    "parameter": "OPENSSL-GENDSA",
    "section": "1SSL",
    "url": "https://www.chedong.com/phpMan.php/man/OPENSSL-GENDSA/1SSL/json",
    "generated": "2026-07-05T13:06:49Z",
    "synopsis": "openssl gendsa [-help] [-out filename] [-passout arg] [-aes128] [-aes192] [-aes256]\n[-aria128] [-aria192] [-aria256] [-camellia128] [-camellia192] [-camellia256] [-des] [-des3]\n[-idea] [-verbose] [-rand files] [-writerand file] [-engine id] [-provider name]\n[-provider-path path] [-propquery propq] [paramfile]",
    "sections": {
        "NAME": {
            "content": "openssl-gendsa - generate a DSA private key from a set of parameters\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "openssl gendsa [-help] [-out filename] [-passout arg] [-aes128] [-aes192] [-aes256]\n[-aria128] [-aria192] [-aria256] [-camellia128] [-camellia192] [-camellia256] [-des] [-des3]\n[-idea] [-verbose] [-rand files] [-writerand file] [-engine id] [-provider name]\n[-provider-path path] [-propquery propq] [paramfile]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This command generates a DSA private key from a DSA parameter file (which will be typically\ngenerated by the openssl-dsaparam(1) command).\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-help",
                    "content": "Print out a usage message.\n"
                },
                {
                    "name": "-out",
                    "content": "Output the key to the specified file. If this argument is not specified then standard\noutput is used.\n"
                },
                {
                    "name": "-passout",
                    "content": "The passphrase used for the output file.  See openssl-passphrase-options(1).\n"
                },
                {
                    "name": "-aes128 -aes192 -aes256 -aria128 -aria192 -aria256 -camellia128 -camellia192",
                    "content": ""
                },
                {
                    "name": "-camellia256 -des -des3 -idea",
                    "content": "These options encrypt the private key with specified cipher before outputting it. A pass\nphrase is prompted for.  If none of these options is specified no encryption is used.\n"
                },
                {
                    "name": "-verbose",
                    "content": "Print extra details about the operations being performed.\n"
                },
                {
                    "name": "-rand -writerand",
                    "content": "See \"Random State Options\" in openssl(1) for details.\n"
                },
                {
                    "name": "-engine",
                    "content": "See \"Engine Options\" in openssl(1).  This option is deprecated.\n\nparamfile\nThe DSA parameter file to use. The parameters in this file determine the size of the\nprivate key. DSA parameters can be generated and examined using the openssl-dsaparam(1)\ncommand.\n"
                },
                {
                    "name": "-provider",
                    "content": ""
                },
                {
                    "name": "-provider-path",
                    "content": ""
                },
                {
                    "name": "-propquery",
                    "content": "See \"Provider Options\" in openssl(1), provider(7), and property(7).\n"
                }
            ]
        },
        "NOTES": {
            "content": "DSA key generation is little more than random number generation so it is much quicker that\nRSA key generation for example.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "openssl(1), openssl-genpkey(1), openssl-dsaparam(1), openssl-dsa(1), openssl-genrsa(1),\nopenssl-rsa(1)\n",
            "subsections": []
        },
        "HISTORY": {
            "content": "The -engine option was deprecated 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-06-02                         OPENSSL-GENDSA(1SSL)",
            "subsections": []
        }
    },
    "summary": "openssl-gendsa - generate a DSA private key from a set of parameters",
    "flags": [
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Print out a usage message."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Output the key to the specified file. If this argument is not specified then standard output is used."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "The passphrase used for the output file. See openssl-passphrase-options(1)."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "These options encrypt the private key with specified cipher before outputting it. A pass phrase is prompted for. If none of these options is specified no encryption is used."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Print extra details about the operations being performed."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "See \"Random State Options\" in openssl(1) for details."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "See \"Engine Options\" in openssl(1). This option is deprecated. paramfile The DSA parameter file to use. The parameters in this file determine the size of the private key. DSA parameters can be generated and examined using the openssl-dsaparam(1) command."
        },
        {
            "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": [],
    "see_also": [
        {
            "name": "openssl",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/openssl/1/json"
        },
        {
            "name": "openssl-genpkey",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/openssl-genpkey/1/json"
        },
        {
            "name": "openssl-dsaparam",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/openssl-dsaparam/1/json"
        },
        {
            "name": "openssl-dsa",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/openssl-dsa/1/json"
        },
        {
            "name": "openssl-genrsa",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/openssl-genrsa/1/json"
        },
        {
            "name": "openssl-rsa",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/openssl-rsa/1/json"
        }
    ]
}