Mark Kilfoil wrote:
>
> Someone had this exact question a month ago, and I find myself with
> the same problem.. There were no responses, so I'm hoping it just
> got lost in the shuffle.
>
> The original message was:
>
> > I am attempting to have a C++ client do a Diffie Hellman key exchange
> > with a server written in java. I generate the keys using openssl's
> > DH_generate_key function and need to send the public key across the
> > wire to my java server.
> >
> > My java server needs this key to be X.509 encoded so I can pass the
> > byte stream into a X509EncodedKeySpec constructor. What is the best way
> > to perform this encoding?
>
> Anyone have an answer? (I need this rather urgently, so I would
> appreciate any help..)
>
OpenSSL doesn't currently support DH certificates meaning it can't an
X509 DH public key format.
Steve.
--
Dr Stephen N. Henson. http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED]
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]