Generate a local Certificate Authority and self-signed certificates for SSL support during local development
You need OpenSSL for these scripts to work.
On macOS you can use brew to install OpenSSL by executing the following command in a terminal:
If you don't have brew installed, look at their homepage on how to install brew.
- Clone the repository
- cd into the MacOS directory
- Call
chmod +x generate-ca.sh
- Call
chmod +x generate-cert.sh
- Check the settings in ca.conf
- Check the settings in certificate.conf
- Add your local domains and IP-addresses to certificate-ext.conf
- Call
./generate-ca.sh
to generate the Certificate Authority private key and Certificate - Call
./generate-cert.sh
to generate the Certificate and sign it with the CA private key - Import the CA certificate in Key Chain Access
On Windows, you can use Chocolatey to install OpenSSL by executing the following command in a cmd window:
If you don't have Chocolatey installed, look at their homepage on how to install Chocolatey.
- Clone the repository
- cd into the Windows directory
- Check the settings in ca.conf
- Check the settings in certificate.conf
- Add your local domains and ip-addresses to certificate-ext.conf
- Call
generate-ca.bat
to generate the Certificate Authority private key and CA certificate - Call
generate-cert.bat
to generate the Certificate and sign it with the CA private key - Install the CA certificate using the Certificate Manager