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
1 error:tasn_dec.c:7 51:Field=version, Type=PKCS8_PRIV_KEY_INFO 1073868400:error:0D0CF0A7:asn1 encoding routines:d2i_AutoPrivateKey:unsupported public key type:d2i_pr.c:157: Any help would be appreciated. Thanks. -- View this message in context: http://openssl.6102.n7.nabble.com/Program-to-convert-

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

Program to convert private key from pem to der format

2014-07-24 Thread phildoch
i's, or is it more complicated? Can someone share a piece of code that does the job? Thanks -- View this message in context: http://openssl.6102.n7.nabble.com/Program-to-convert-private-key-from-pem-to-der-format-tp52282.html Sent from the OpenSSL - User mailing lis