Last active
December 17, 2016 01:35
-
-
Save asutherland/9b1516a0ddf2c94d0aa7 to your computer and use it in GitHub Desktop.
Email SSL/TLS validation helpers using openssl command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
openssl s_client -CApath /etc/ssl/certs -starttls imap -connect $1:143 < /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
openssl s_client -CApath /etc/ssl/certs -connect $1:993 < /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
openssl s_client -CApath /etc/ssl/certs -starttls pop3 -connect $1:110 < /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
openssl s_client -CApath /etc/ssl/certs -connect $1:995 < /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
openssl s_client -CApath /etc/ssl/certs -starttls smtp -connect $1:587 < /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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