-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

... and was this version number in 0.9.7g not user or optional?

It's a bit astonishing that it worked with an older but not with the current 
version!
What standard is used to describe the private key in this method (sorry, I 
looked for it, but I didn't find it)?

Thank you!
Thomas
 

- -----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Nils Larsch
Gesendet: Samstag, 24. März 2007 00:27
An: openssl-users@openssl.org
Betreff: Re: Import private key with d2i_AutoPrivateKey

Hellstern, Thomas (LfSt) wrote:
...
>            [exec] d2i_AutoPrivateKey returned a key at 0x00000000 
>            [exec]      ERR_get_error()=218783872 (0x0d0a6080) 
>            [exec]      ERR_lib_error_string(rc)=asn1 encoding routines 
>            [exec]      ERR_func_error_string(rc)=LONG_C2I 
>            [exec]      ERR_reason_error_string(rc)=integer too large for long 

well, your key is broken.

[EMAIL PROTECTED]:/tmp> dumpasn1 key.bin
    0 1184: SEQUENCE {
    4  257:   INTEGER
          :     00 9F 6D 64 3B 61 63 B5 D4 41 AF 5E CE BA 33 DF
          :     18 08 0F FB E5 A1 CA FE FA 31 29 3B BE 6A 2E 95
          :     4E A7 53 97 CD C9 1E C8 B7 36 6E B5 7B 83 83 E7
...

the version number of the structure is missing (as openssl
tries to store the version number in a 'long' openssl attempts
to store the first entry, here the modulus, in a long ...
see above error message).

Nils
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

-----BEGIN PGP SIGNATURE-----
Version: 9.5.3 (Build 5003)

wsBVAwUBRgy82qTlPALTHpGCAQiJPggAn/bYjIc/ri0rnGCJjbpf5QsgW35ga+Qd
yBthcsvs5XrL3GQ61fNG0eIPrWKzswvJrnB3IOPS1vnFiHQJF513cuoIxm1NCSOy
6fk/GzSZJIWY4BXiP04HIlWmI9xuv9PwvD8laxPRkhTSMpxFUuuLBQFZX3IbPdJh
py8zoStt+nOk2n9PMzN6BbGFg2mRKPLNBlJ1Vc7cILu1GoIfUJXPdmDnlVt9OjZa
MfwgHsrcfBd6PHyEVSn49NpL+VUuveD1jD75e/M7VhMxYlWPcx0hIPL7nb4oXTle
VlqY7Rbo/BJsn2vHtKGXfCwSyf2Z4RmrpgQcwyihDKRJevKcs0mdvA==
=rqoi
-----END PGP SIGNATURE-----

Reply via email to