Openssl
From Attie's Wiki
Make a certificate
# create a self-signed (insecure,unencrypted) certificate openssl req -x509 -nodes -days 365 \ -newkey rsa:1024 -keyout mycert.pem -out mycert.pem
Command line server
openssl s_server -cert mycert.pem -accept 443
Command line client
openssl s_client -connect localhost:443
Tip: Use the -quiet
option to get rid of all the garbage