On 26/04/18 21:17, Ken Goldman wrote:
> I have to get the raw public modulus, but I cannot X509_get_pubkey()
> because of a non-standard object identifier.
> 
> I can use X509_get_X509_PUBKEY() to get part way there.  I see the DER
> wrapped key in the public_key.data element, but I don't know an API to
> get to that element.

How about X509_PUBKEY_get0_param():

https://www.openssl.org/docs/man1.1.0/crypto/X509_PUBKEY_get0_param.html

Matt


> 
> Am I on the right track, or is there a better way?
> 
> Could some very kind person give me the code flow?
> 
> 
> 
-- 
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users

Reply via email to