Hello all,
I have several questions regards dealing with certificates in crypto++.
I have just wrote an Client-Server application which using crypto++ for
encrypted data exchange. The first version is working just with compiled in:
Integer p_Modus("0xe75bdc24b294db3de7485b071b12a2119d885e4a9d....");
Integer sg_SubgroupGenerator("0x3");
then Diffie-Hellman class is Initialize:
m_dhMy.AccessGroupParameters().Initialize(p_Modus,
sg_SubgroupGenerator);
and private and public keys are generated:
m_dhMy.GenerateKeyPair(m_dhMyRng, m_dhMyPrivKey, m_dhMyPubKey);
Now I would like to replace this part of code with a mechanism which would
obtain m_dhMyPrivKey, m_dhMyPubKey from certificates. So my questions are:
1) Is it possible generate certificates with Diffie-Hellman keys with
crypto++ functions? Or is it necessary to generate them with another tool
e.g. openssl?
2) How to obtain keys from certificates?
I have tried to use example at: http://www.cryptopp.com/wiki/X.509
but I haven't succeeded to obtain key in binary format from used data
structures 'CryptoPP::BufferedTransformation & keyout' or 'ByteQueue
googleq, thawteq, googletbs, thawtespki'.
Please, could anyone be so kind and give me a hint? The best would an
example. Thanks a lot in advance.
Krivak
--
View this message in context:
http://old.nabble.com/Using-certificates-in-crypto%2B%2B-tp33964188p33964188.html
Sent from the Crypto++ Users mailing list archive at Nabble.com.
--
You received this message because you are subscribed to the "Crypto++ Users"
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at
http://www.cryptopp.com.