I have a SSL CRT file in PEM format. Is there a way that I can extract the common name (CN) from the certificate from the command line?
Get common name (CN) from SSL certificate?
openssl;certificates
If you have openssl installed you can run:openssl x509 -noout -subject -in server.pem