dear all,

need help!  basically i'm writing some c++ class libraries for accessing
the openssl toolkit (just for my piece of mind but for easier and
quicker
development too :)  i'm having real problems with the signing of data
using RSA keys as i keep getting the error:

4952:error:0606B06E:digital envelope routines:EVP_SignFinal:wrong public
key type:p_sign.c:101:

i've followed the code in the sign.c example (load a private key, sign
some data, load the certificate, get the public key, verify the
certificate)
but it doesn't work!  the only things different about my code and the
sign.c is my class wrappers and the fact that i copy key instances. 
now,
i've copied the RSA keys using the i2d_RSAPrivateKey() and
d2i_RSAPrivateKey()
functions but this doesn't seem to work well!

please, somebody, throw some light on what i'm doing wrong :)

p.s.    why is it the 'wrong public key type' when i'm using a private
        key!?!!

=========================================================================
Matthew Denner                      Senior Software Engineer @ WAM!NET
UK
+44 1202 208571
=========================================================================
 Screw Up #1: "One small step for man, one giant leap for mankind"
 Reason:      Neil Armstrong missed a single 'a' from the sentence and
              changed the whole meaning (it should be 'a man')
=========================================================================
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to