Skip to content

Instantly share code, notes, and snippets.

@jamesallen-cm
Created June 7, 2015 17:08
Show Gist options
  • Save jamesallen-cm/094ce1aaed1c530cc015 to your computer and use it in GitHub Desktop.
Save jamesallen-cm/094ce1aaed1c530cc015 to your computer and use it in GitHub Desktop.
Create a Self Signed Certificate
# Goto the OpenSSL bin directory
pushd $env:ProgramFiles\OpenSSL\bin
# Create a self-signed SSL certificate. Be sure to update your paths if required.
openssl req -newkey rsa:4096 -nodes -sha256 -keyout C:\temp\myAwesomeServer.key -x509 -days 365 -out C:\temp\myAwesomeServer.crt -config $env:ProgramFiles\OpenSSL\bin\openssl.cfg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment