Localhost SSL Certificate Generator
640
This repository provides a lightweight and automated way to generate self-signed SSL/TLS certificates for localhost and custom subdomains, making it easy to enable HTTPS in local development environments.
localhost and additional subdomains.Makefile.Ensure you have the following installed:
To generate a localhost SSL certificate, use the following command:
docker run --rm -v $(pwd)/localhost-ssl:/app incodig/localhost-cert-generator:latest
This will generate SSL certificates in the certs/ directory.
If you are running locally with Makefile, follow these steps:
cd localhost-ssl
make generate-install
This will create the certificates and install them in your system's trust store (Linux/macOS).
By default, the certificate includes localhost and www.localhost.
To add more subdomains:
Edit the configuration file:
certs/localhost.ext
Add the desired subdomains under [alt_names]:
[alt_names]
DNS.1 = localhost
DNS.2 = www.localhost
DNS.3 = dev.localhost
Re-generate and install the certificate:
make generate-install
Pull requests and contributions are welcome! Please follow these steps:
https://github.com/incodig/localhost-cert-generator
Content type
Image
Digest
sha256:78fd888c7…
Size
3.9 MB
Last updated
over 1 year ago
docker pull incodig/localhost-cert-generator