Having TLS certificate in local file, I can display its details using syntax like:
openssl x509 -text -noout -in cert_filename
Is there any way to display remote SMTP/POP3/HTTP server's TLS certificate in this same format in bash terminal?
command lineopenssltls
Having TLS certificate in local file, I can display its details using syntax like:
openssl x509 -text -noout -in cert_filename
Is there any way to display remote SMTP/POP3/HTTP server's TLS certificate in this same format in bash terminal?
Best Answer
openssl s_client -connect server:port
display some informations. Maybe is it sufficient for you. It is not exactly the same format, but it can help.