Reputation: 576
What is the best way to know if any x509 Certificate
is singed by RSA ?
What is mean is, by which file header can I know that information?
Upvotes: 1
Views: 1095
Reputation: 5265
Just run
openssl x509 -text -noout -in yourcertfile.pem
The Signature Algorithm
attribute will show you how the certificate was signed:
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 13 (0xd)
Signature Algorithm: sha1WithRSAEncryption
Issuer: C=XX, L=XXXXXX, O=XXXXXX, OU=XXXXXX, CN=XXXXXX
Validity:
Not Before: XXX XX XX:XX:XX XXXX GMT
Not Before: XXX XX XX:XX:XX XXXX GMT
....
Upvotes: 2