Last active
November 18, 2016 00:59
-
-
Save pcambra/d5dddda2a6d59612d4207301e29a598b to your computer and use it in GitHub Desktop.
Generate self signed cert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# —------------ BEGIN custom wildcard.conf —--- | |
oid_section = new_oids | |
[ new_oids ] | |
[ req ] | |
default_days = 3650 # how long to certify for | |
distinguished_name = req_distinguished_name | |
encrypt_key = no | |
string_mask = nombstr | |
req_extensions = v3_req # Extensions to add to certificate request, needed for multiname | |
[ req_distinguished_name ] | |
commonName = Common Name (eg, YOUR name) | |
commonName_default = *.tida.dev | |
commonName_max = 64 | |
[ v3_req ] | |
subjectAltName=DNS:tida.dev,IP:172.19.0.6 | |
# —------------ END custom wildcard.conf —--- | |
# Steps: | |
# 1. openssl req -x509 -nodes -batch -config wildcard.conf -newkey rsa:2048 -keyout nginx.key -extensions v3_req -out nginx.crt | |
# 2. openssl x509 -noout -text -in nginx.crt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment