genpkey DSA error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 26/08/16 21:37, Leam Hall wrote:
> More than likely it's operator error.
> 
> OS Version:
>     CentOS 6, patched.
> 
> openssl version:
>        OpenSSL 1.0.1e-fips 11 Feb 2013
> 
> Works:
>     openssl genpkey -algorithm RSA -out fred_ssl.key
>     ........++++++
>     ........++++++
> 
> Fails:
>     openssl genpkey -algorithm DSA -out fred_ssl.key
>     Error generating key
>     140421332879176:error:0A07906B:dsa routines:PKEY_DSA_KEYGEN:no
> parameters set:dsa_pmeth.c:271:
> 
> 
> Suggestions?

DSA needs parameters specifying.

Try this:

openssl genpkey -genparam -algorithm DSA -pkeyopt dsa_paramgen_bits:2048
-out dsa.params

openssl genpkey -paramfile dsa.params -out dsa.key


Matt



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux