Skip to content

Instantly share code, notes, and snippets.

@asutherland
Last active December 17, 2016 01:35
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asutherland/9b1516a0ddf2c94d0aa7 to your computer and use it in GitHub Desktop.
Save asutherland/9b1516a0ddf2c94d0aa7 to your computer and use it in GitHub Desktop.
Email SSL/TLS validation helpers using openssl command line
#!/bin/bash
openssl s_client -CApath /etc/ssl/certs -starttls imap -connect $1:143 < /dev/null
#!/bin/bash
openssl s_client -CApath /etc/ssl/certs -connect $1:993 < /dev/null
#!/bin/bash
openssl s_client -CApath /etc/ssl/certs -starttls pop3 -connect $1:110 < /dev/null
#!/bin/bash
openssl s_client -CApath /etc/ssl/certs -connect $1:995 < /dev/null
#!/bin/bash
openssl s_client -CApath /etc/ssl/certs -starttls smtp -connect $1:587 < /dev/null
#!/bin/bash
openssl s_client -CApath /etc/ssl/certs -connect $1:465 < /dev/null
echo $?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment