Le Mercredi 10 Février 2010 12:32:50, vous avez écrit :
> Hi,
> 
> I have lost my public key, I used this public key to generate a certificate
> request which has been signed. I need to try and recover my key to a .p12
> file and reimport it into my program to match the signed cert.
> 
> All I have to work with is my key is the format -----BEGIN PUBLIC
> KEY-----MIGfMA0...-----END PUBLIC KEY-----.
> 
> What I've attempted, and I maybe way off, is to save the  "-----BEGIN
> PUBLIC KEY-----MIGfMA0...-----END PUBLIC KEY----" text as a .pem file and
> try to export to a .p12 file using the command below which generates the
> errors as below:
> 
> C:\OpenSSL\bin>openssl pkcs12 -in TOIpubkeyIS.pem -out TOIaaa.p12 -nodes
> 2444:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong
> tag:.\crypto\asn1\tasn_dec.c:1316:
> 2444:error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1
> error:.\crypto\asn1\tasn_dec.c:380:Type=PKCS12
> 
> Is what I'm trying to achieve even possible? and if so how might I
> accomplish it?
> 
> Thanks in advance.
if you still have your private one, generate other with same paramethers it 
should work
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [email protected]

Reply via email to