On Mon, Mar 17, 2003, Nils Larsch wrote: > Kocsis Peter wrote: > > HEllo! > > > > I am a newby, and I need some help. A want to check, > > whether the certificate is signed by the provided key. > > I generate both the key (firstly RSA) and the certificate. > > > > I generate an RSA-key, assign it to an EVP_PKEY structure, > > sign the cert with it, than use X509_get_pubkey() to get > > the public key, and verify the signature with the pubkey, > > X509_verify(cert, pubkey), but it always results "-1", > > and I dont know why. > > Try to get more information about the failure with the ERR_get_error() > function. >
Then if you just get an apparently meaningless string of digits read the FAQ. Once you've read that and can get a human readable string read the FAQ again to see what it means. Or you could just read the FAQ and see which question and answer you think is relevant to both :-) 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]