{
    "content": [
        {
            "type": "text",
            "text": "# openssl-gendsa (man)\n\n## NAME\n\nopenssl-gendsa - generate a DSA private key from a set of parameters\n\n## SYNOPSIS\n\nopenssl 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\n## DESCRIPTION\n\nThis command generates a DSA private key from a DSA parameter file (which will be typically\ngenerated by the openssl-dsaparam(1) command).\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (11 subsections)\n- **NOTES**\n- **SEE ALSO**\n- **HISTORY**\n- **COPYRIGHT**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "openssl-gendsa",
        "section": "",
        "mode": "man",
        "summary": "openssl-gendsa - generate a DSA private key from a set of parameters",
        "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]",
        "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": "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. Note that all options must be given before the paramfile argument. Otherwise they are ignored."
            },
            {
                "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"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-help",
                        "lines": 2
                    },
                    {
                        "name": "-out _",
                        "lines": 3
                    },
                    {
                        "name": "-passout _",
                        "lines": 2
                    },
                    {
                        "name": "-aes128 -aes192 -aes256 -aria128 -aria192 -aria256 -camellia128 -camellia192",
                        "lines": 1
                    },
                    {
                        "name": "-camellia256 -des -des3 -idea",
                        "lines": 6
                    },
                    {
                        "name": "-verbose",
                        "lines": 2
                    },
                    {
                        "name": "-rand _ -writerand _",
                        "lines": 2
                    },
                    {
                        "name": "-engine _",
                        "lines": 7
                    },
                    {
                        "name": "-provider _",
                        "lines": 1
                    },
                    {
                        "name": "-provider-path _",
                        "lines": 1
                    },
                    {
                        "name": "-propquery _",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "NOTES",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "HISTORY",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 7,
                "subsections": []
            }
        ],
        "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\nNote  that  all  options must be given before the paramfile argument.  Otherwise they are\nignored.\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-2023 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-GENDSA(1SSL)",
                "subsections": []
            }
        }
    }
}