rate 2048 bit DSA parameters that can be validated: The output values for gindex and seed are required for key validation purposes and are not saved to the output pem file).</p>

<pre><code>openssl genpkey -genparam -algorithm DSA -out dsap.pem -pkeyopt pbits:2048 \
    -pkeyopt qbits:224 -pkeyopt digest:SHA256 -pkeyopt gindex:1 -text</code></pre>

<p>Generate DSA key from parameters:</p>

<pre><code>openssl genpkey -paramfile dsap.pem -out dsakey.pem</code></pre>

<p>Generate 4096 bit DH Key using safe pri