[openssl.org #2957] genpkey for DH key generation does not honor recommended private length

2013-01-15 Thread Ron Harvey via RT
Greetings, When using 'genpkey' command to generate DH keys, the 'recommended private key size' is not honored when it is present in the DH Parameters file. I found this problem in 1.0.1c. Consider the attached parameter file, openssl_dh_params.pem $ openssl dhparam -in openssl_dh_params.pem

[openssl.org #2961] [PATCH] Enhance DH Paramgen to allow setting of "recommended private key size"

2013-01-18 Thread Ron Harvey via RT
To go along with the fix for #2957, please consider the following enhancement. It adds support for the option to genpkey: -pkeyopt dh_paramgen_private_len:${S_BITS} for DH Parameter generation. It also sets the size to 160 in the absence of this parameter. The genpkey pod file is updated