-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

GeraGray schrieb:
|>  Yes, this is bug, in any case when key type is not recognized (not
|>  RSA/DSA/EC)
|>  error with information of unknown public key will be printed.
|>  This should be corrected.
|>  EVP_PKEY_RSA instead of SSL_FILETYPE_ASN1 should be used.
|
| Thnaks, now it works correctly.

The reason  the PEM format succeeded:
In in the PEM header is coded the key type,
so when OpenSSL starts to read the key data it already knows
which key format to load.

On the other hand is the key type not available in the DER format,
so OpenSSL has to guess and fails.
Storing the key in PKCS#8 format should succeed...

Bye

Goetz

- --
DMCA: The greed of the few outweights the freedom of the many
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH/6gV2iGqZUF3qPYRAg4VAJ4mEMfIxnDTv4koiEUPa/MBy9NShgCfY0U/
LDQHi5Tkw8IcrkmC2kdELek=
=E8HQ
-----END PGP SIGNATURE-----
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to