cd ssl
rm -rf *
openssl req \
-newkey rsa:2048 \
-x509 \
-nodes \
-keyout server.key \
-new \
-out server.crt \
-subj /CN=dev.dockyard.com \
-reqexts SAN \
-extensions SAN \
-config <(cat /System/Library/OpenSSL/openssl.cnf \
<(printf '[SAN]\nsubjectAltName=DNS:dev.dockyard.com')) \
-sha256 \
-days 3650
This will regenerate valid SSL certs.
Development runs under SSL. We'll need to trust the included certificate and run the development server under the domain the certificate expects.
- run:
sudo -- sh -c -e "echo '127.0.0.1 dev.dockyard.com' >> /etc/hosts"
- run
open ssl/
- double-click on server.crt
- add certificate to your System Keychain
- find
dev.dockyard.com
certificate, double-click to edit - change When using this certificate to Always Trust
- close dialog box and save changes