How do I check if my SSL Certificate is SHA1 or SHA2 on the commandline

后端 未结 4 415
攒了一身酷
攒了一身酷 2021-02-05 07:43

How do I check if my SSL Certificate is using SHA1 or SHA2, from the commandline?

And yes, i this is similar to this, but i need a cli-tool and i want to understand how

4条回答
  •  后悔当初
    2021-02-05 08:35

    I know the topic is old but I think

    openssl x509 -in yourcert.crt -text -noout | grep "Signature Algorithm"
    

    would be an easier solution.

提交回复
热议问题