[openssl-users] Problem with DER private key file into openssl ca

Jeffrey Walton noloader at gmail.com
Mon Aug 21 17:41:30 UTC 2017


> openssl req -outform $format -config $cadir/openssl-root.cnf -set_serial
> 0x$(openssl rand -hex $sn)\
>       -inform $format -key private/ca.key.$format -subj "$DN"\
>       -new -x509 -days 7300 -sha256 -extensions v3_ca -out
> certs/ca.cert.$format
>
> unable to load Private Key
> 140492430772088:error:0906D06C:PEM routines:PEM_read_bio:no start
> line:pem_lib.c:707:Expecting: ANY PRIVATE KEY
>
> How do I tell it that the private key is DER?

-inform is used to specify the encoding. You can find the man pages at
https://www.openssl.org/docs/man1.0.2/apps/. You want the req.html.

Jeff


More information about the openssl-users mailing list