https://github.com/ikwattro/mkcert-docker
Dockerfile for running mkcert and generate ssl certificates with a Docker container
https://github.com/ikwattro/mkcert-docker
docker mkcert ssl ssl-certificates
Last synced: 6 months ago
JSON representation
Dockerfile for running mkcert and generate ssl certificates with a Docker container
- Host: GitHub
- URL: https://github.com/ikwattro/mkcert-docker
- Owner: ikwattro
- Created: 2022-12-17T17:55:20.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-17T21:46:36.000Z (almost 3 years ago)
- Last Synced: 2025-02-10T06:12:09.539Z (8 months ago)
- Topics: docker, mkcert, ssl, ssl-certificates
- Language: Dockerfile
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mkcert-docker
Create local self-signed certificates without having to install anything locally.
## Usage
Create a directory for hosting the certificates
```bash
mkdir certificates && cd certificates
```Assuming you want to create a certificate for `develop.localhost.com`
Run the container
```bash
docker run --rm -it -e domain=develop.localhost.com --name mkcert -v $PWD:/root/.local/share/mkcert ikwattro/mkcert-docker
```Install the certificate to your OS trustore ( OS X )
```bash
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain $PWD/rootCA.pem
```