In progress document on command line usage of OpenSSL
In progress document on command line usage of OpenSSL
References:
Direct Connect to SSL Port
For testing HTTPS, POP3S, etc
openssl s_client [-crlf] -connect address:port
Connect to SSL Port using SNI ServernameS
HTTPS testing using SNI based virtuals
openssl s_client [-crlf] -servername hostname -connect address:port
Connect to service using STARTTLS
For testing SMTP w/ starttls, IMAP w/ starttls...
openssl s_client [-crlf] -starttls service -connect address:port
Service is one of: smtp pop3 imap ftp
Connect with a specific version of SSL/TLS
Useful for verifying that a specific version isn't supported, try connecting with that version and see if it fails.
Note: -crlf will translate line feed from terminal into CR+LF
openssl req -new [-nodes] -keyout certname.key -out certname.csr
openssl x509 -in certname.csr -out certname.crt -req -signkey signingkey.key -days 365
openssl req -new -x509 -nodes -days 366 -out servercert.pem -keyout servercert.pem
openssl rsa -in signed.key -out unsigned.key
openssl x509 -noout -text -in pop3s.pem