Can someone point me to how I can get the public key out of an X509 object? Basically, what I am trying to achieve is to sign something using the EVP interface and either a DSA or RSA private key, where the associated public key is in the cert. So now I want to get the public key out of the cert to verify the signature, again using the EVP interface. Am I going about this the right way? Or is there another set of API's that I should use that deal directly with the X509* instead?
Thanks,
Ed