The Dr.
The Dr.

Reputation: 576

How to know if x509 certificate is signed by RSA?

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

Answers (1)

Stefan Ferstl
Stefan Ferstl

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

Related Questions