Find the algorithm and length of a x509 Key

Posted on #posts #til

Today I learned how to get the algorithm and length of an x509 key (since I couldn't find it on Workday Community).

(I'm using a Windows 10 computer in the cmd terminal)

certutil -dump "Downloads/key.txt"

And out of that, I got a whole bunch of junk with these useful bits:

X509 Certificate:
Version: 3
Signature Algorithm:
    Algorithm ObjectID: ... Sha256RSA
    Algorithm Parameters:
    05 00
Public Key Length: 2048 bits