diff --git a/content/nerdstuff/certificates.md b/content/nerdstuff/certificates.md new file mode 100644 index 0000000..63bd8c2 --- /dev/null +++ b/content/nerdstuff/certificates.md @@ -0,0 +1,24 @@ +--- +title: Certificates +menu: + main: + parent: Nerdstuff +--- + +## Retrieve certificate information from server + +### HTTPS + +``` +openssl s_client -connect mail.br0tkasten.de:443 -servername mail.br0tkasten.de /dev/null | openssl x509 -noout -text +``` + +### IMAP with STARTTLS +``` +openssl s_client -starttls imap -connect mail.br0tkasten.de:143 /dev/null | openssl x509 -noout -text +``` + +### SMTP with STARTTLS +``` +openssl s_client -starttls smtp -connect mail.br0tkasten.de:587 /dev/null | openssl x509 -noout -text +```