Skip to content

Instantly share code, notes, and snippets.

@winks
Forked from jordansissel/gist:3741723
Created October 22, 2013 20:41
Show Gist options
  • Save winks/7107735 to your computer and use it in GitHub Desktop.
Save winks/7107735 to your computer and use it in GitHub Desktop.
# Create a self-signed cert
openssl req -x509 -batch -nodes -newkey rsa:2048 -keyout lumberjack.key -out lumberjack.crt
# Run a server
openssl s_server -accept 3333 -cert lumberjack.crt -key lumberjack.key
# Run a client
openssl s_client -connect localhost:3333 -cert lumberjack.crt -key lumberjack.key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment