How do I check if an OpenSSL certificate issued to a site is SHA-1 or SHA-256?
I have a quite a lot of intranet sites using OpenSSL certificates and I am a bit confused as when I check the certificate properties, I get:
Signature Algorithm: sha1RSA
Signature Hash Algorithm: sha1
Signature Algorithm: PKCS #1 SHA-1 With RSA Encryption
Under Fingerprints, I see both SHA256 and SHA-1
OpenSSL command line attempt not working
I tried using OpenSSL command, but for some reasons it errors out for me and if I try to write to a file, the output file is created, but it is blank.
openssl.exe s_client -connect mysite:443 > CertInfo.txt && openssl x509 -text -in CertInfo.txt | find "Signature Algorithm"
Basically, I need to validate that the certificates are really SHA-1 and I need to upgrade that to a SHA256 or SHA-2.