RE: Program to convert private key from pem to der format

2014-07-28 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of Viktor Dukhovni > Sent: Thursday, July 24, 2014 14:18 > On Thu, Jul 24, 2014 at 08:07:01AM -0700, phildoch wrote: > > > The key format needed by the system is algorithm-specific DER format. > > I am not aware of any standard formats for keys o

Re: Program to convert private key from pem to der format

2014-07-24 Thread Viktor Dukhovni
On Thu, Jul 24, 2014 at 08:07:01AM -0700, phildoch wrote: > The key format needed by the system is algorithm-specific DER format. I am not aware of any standard formats for keys other than PKCS#8 or PKCS#12. In particular, the algorithm-specific PEM encodings output by "openssl rsa|ec" are I bel

Re: Program to convert private key from pem to der format

2014-07-24 Thread phildoch
Viktor, The key format needed by the system is algorithm-specific DER format. It is received from the user in the same algorithm-specific in PEM format. The algorithm can be: 1) secp384r1 (i.e. created by "openssl ecparam -out ec_key.pem -name secp384r1 -genkey") 2) rsa:2048(i.e. created by "

Re: Program to convert private key from pem to der format

2014-07-24 Thread Viktor Dukhovni
On Thu, Jul 24, 2014 at 06:13:45AM -0700, phildoch wrote: > I currently have a short program that converts a certificate from pem format > to der format. PEM and DER are strictly speaking encodings, not formats. The underlying data is identical, an ASN.1 DER X.509v3 certificate, which in the PEM

RE: Program to convert private key from pem to der format

2014-07-24 Thread Salz, Rich
Just do base64 decode. -- Principal Security Engineer, Akamai Technologies, Cambridge, MA IM: rs...@jabber.me; Twitter: RichSalz __ OpenSSL Project http://www.openssl.org User Support Mailing Li