On Mon, Sep 22, 2003, Frank wrote:

> Any one have an example on how to DER encode a public key and then 
> convert it back again? I believe you use :
> i2d_PulicKey() & d2i_PublicKey().  I seem to be able to convert to DER 
> (at least the func doe snot fail).   But converting it back it does not 
> seem to, or at least totally.  I run the EVP_PKEY_missing_parameters() 
> and it fails.  Also when I save the pulickey with PEM_write_PUBKEY() is 
> it much smaller then the original.
> 

Presumably this isn't an RSA key? Have you tried i2d_PUBKEY() and d2i_PUBKEY()

Steve.
--
Dr Stephen N. Henson.
Core developer of the   OpenSSL project: http://www.openssl.org/
Freelance consultant see: http://www.drh-consultancy.demon.co.uk/
Email: [EMAIL PROTECTED], PGP key: via homepage.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to