Re: Convert DER to PEM syntax problem

2009-06-17 Thread Sébastien PIAU
Steve, Of course you're right. Sorry for the error... Sebastien Dr. Stephen Henson a écrit : On Wed, Jun 17, 2009, Sbastien PIAU wrote: Steve, Fortunately, this certificat is only a test one... I'll ask for password from issuer. Err it is not a certificate it is a private key. S

Re: Convert DER to PEM syntax problem

2009-06-16 Thread Dr. Stephen Henson
On Wed, Jun 17, 2009, Sbastien PIAU wrote: > Steve, > > Fortunately, this certificat is only a test one... > I'll ask for password from issuer. > Err it is not a certificate it is a private key. Since a certificate is often public knowledge and a private key is, well, private it is not a good id

Re: Convert DER to PEM syntax problem

2009-06-16 Thread Sébastien PIAU
Steve, Fortunately, this certificat is only a test one... I'll ask for password from issuer. Thanks, Sebastien Dr. Stephen Henson a écrit : On Tue, Jun 16, 2009, Sbastien PIAU wrote: Carl, This is the output generated : openssl asn1parse -in my.key - inform der 0:d=0

Re: Convert DER to PEM syntax problem

2009-06-16 Thread Dr. Stephen Henson
On Tue, Jun 16, 2009, Sbastien PIAU wrote: > Carl, > > This is the output generated : > > >openssl asn1parse -in my.key - inform der >0:d=0 hl=4 l= 672 cons: SEQUENCE >4:d=1 hl=2 l= 26 cons: SEQUENCE >6:d=2 hl=2 l= 9 prim: OBJECT:pbeWithSHA1AndDES-CBC > 17:d=2 hl=

Re: Convert DER to PEM syntax problem

2009-06-16 Thread Sébastien PIAU
Carl, This is the output generated : >openssl asn1parse -in my.key - inform der 0:d=0 hl=4 l= 672 cons: SEQUENCE 4:d=1 hl=2 l= 26 cons: SEQUENCE 6:d=2 hl=2 l= 9 prim: OBJECT:pbeWithSHA1AndDES-CBC 17:d=2 hl=2 l= 13 cons: SEQUENCE 19:d=3 hl=2 l= 8 prim: OCTET S

Re: Re: Convert DER to PEM syntax problem

2009-06-16 Thread carlyoung
>On Tue 16/06/09 3:09 PM , carlyo...@keycomm.co.uk sent: > >Is it possible that the key was not exported as PKCS#8 and was just exported >to DER just using i2d_PrivateKey >or similar? > >You can use openssl asn1parse to check: > >"openssl asn1parse -in my.key -inform der" > >If it is PKCS#8 export

Re: Convert DER to PEM syntax problem

2009-06-16 Thread carlyoung
Is it possible that the key was not exported as PKCS#8 and was just exported to DER just using i2d_PrivateKey or similar? You can use openssl asn1parse to check: "openssl asn1parse -in my.key -inform der" If it is PKCS#8 exported, then you should see sequence, integer, sequence, object (RSAEn