openssl X509 reading signature Hash algorithm using C unix

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

openssl X509 reading signature Hash algorithm using C unix

vijay
I'm trying to convert my root certificate to Pem files using C unix. In my
current code I'm using the openssl function

const EVP_MD *digest=EVP_sha1();
to make the digest as SHA1, but now I want to modify the code to support
sha256 and sha512.
From the current openssl.h I found that X509->signature gives Signature
Algorithm what my root certificate is holding. But is there a way to find
what is the Signature Hash Algorithm that my root certificate is holding?

Found a similar one in C#: How to retrieve the Signature hash algorithm
friendly name using c# cryptography? But I need a similar one in C.

Also is there any ppt which talks about the unix openssl.h in detail?



--
Sent from: http://openssl.6102.n7.nabble.com/OpenSSL-Dev-f29372.html
--
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev