On Wed, May 16, 2007, _mikie wrote:

> 
> My issue stems from a server expecting an PKCS1 X509 ASN.1 BER encoded
> public key. I'm currently calling i2d_RSA_PUBKEY() after generating a new
> RSA object, but the result is in DER encoding and the server does not like
> it. The code calling this orginally used RSA Lab's SSL-CME, but we've ported
> everything over to OpenSSL on the client side. I'm new to SSL programming,
> so I may be overlooking something basic.
> 

Try i2d_RSAPublicKey() as well in case it wants an RSAPublicKey structure.
i2d_RSA_PUBKEY() encodes the whole SubjectPublicKeyInfo structure.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to