Skip to content

Instantly share code, notes, and snippets.

@imesh
Created June 20, 2014 09:25
Show Gist options
  • Save imesh/9d06052e43d8fac5623f to your computer and use it in GitHub Desktop.
Save imesh/9d06052e43d8fac5623f to your computer and use it in GitHub Desktop.
Generate a SSL Key and a Certificate
echo "Creating a local Certificate Authority using OpenSSL ..."
openssl genrsa -des3 -out ca.key 1024
echo "Building the certificate of Certificate Authority ..."
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment