Developer-SSL-Certificates
Developer-SSL-Certificates copied to clipboard
Generate a local Certificate Authority and self-signed certificates for SSL support during local development
Developer-SSL-Certificates
Generate a local Certificate Authority and self-signed certificates for SSL support during local development
Dependencies
You need OpenSSL for these scripts to work.
macOS
On macOS you can use brew to install OpenSSL by executing the following command in a terminal:
brew install OpenSSL
If you don't have brew installed, look at their homepage on how to install brew.
Installation
- 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.shto generate the Certificate Authority private key and Certificate - Call
./generate-cert.shto generate the Certificate and sign it with the CA private key - Import the CA certificate in Key Chain Access
Windows
On Windows, you can use Chocolatey to install OpenSSL by executing the following command in a cmd window:
choco install OpenSSL
If you don't have Chocolatey installed, look at their homepage on how to install Chocolatey.
Installation
- 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.batto generate the Certificate Authority private key and CA certificate - Call
generate-cert.batto generate the Certificate and sign it with the CA private key - Install the CA certificate using the Certificate Manager