Skip to content

Instantly share code, notes, and snippets.

@ningthoujam-lokhendro
Created June 2, 2017 12:51
Show Gist options
  • Save ningthoujam-lokhendro/c24d59e9802a050cf54208c41d6b0c81 to your computer and use it in GitHub Desktop.
Save ningthoujam-lokhendro/c24d59e9802a050cf54208c41d6b0c81 to your computer and use it in GitHub Desktop.
Generate Certificates and self signed for dev usage
# Generate Private Key
openssl genrsa 1024 > star.example.com.key
# Generate Certificate Signing Request
openssl req -new -key ./star.example.com.key >./star.example.com.csr
# Self Signed the Certificate
openssl x509 -in star.example.com.csr -out star.example.com.crt -req -signkey star.example.com.key -days 365
# Convert to PEM.
cat star.example.com.crt star.example.com.key > server.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment