https://github.com/aem-design/docker-mkcert
https://github.com/aem-design/docker-mkcert
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/aem-design/docker-mkcert
- Owner: aem-design
- License: apache-2.0
- Created: 2023-04-05T00:46:28.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-05T01:47:39.000Z (about 2 years ago)
- Last Synced: 2025-02-17T23:45:50.103Z (3 months ago)
- Language: PowerShell
- Size: 19.5 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
## Make Cert
[](https://github.com/aem-design/docker-mkcert/actions?query=workflow%3Abuild)
[](https://github.com/aem-design/docker-mkcert)
[](https://github.com/aem-design/docker-mkcert)
[](https://github.com/aem-design/docker-mkcert)
[](https://github.com/aem-design/docker-mkcert)
[](https://hub.docker.com/r/aemdesign/mkcert)
[](https://hub.docker.com/r/aemdesign/mkcert)A fast and simple way to generate CA and SSL certificates for your local dev environment
## How to run
To create certificate with pkcs12 in your current directory:
```bash
docker run -v $PWD:/root/.local/share/mkcert brunopadz/mkcert-docker:latest /bin/sh -c "test ! -f mkcert.key && mkcert -install && mkcert -cert-file mkcert.pem -key-file mkcert.key localhost.dev && openssl pkcs12 -export -out mkcert.pfx -in mkcert.pem -inkey mkcert.key -certfile rootCA.pem -passout pass:123;"
```or
```powershell
docker run -v ${PWD}:/root/.local/share/mkcert brunopadz/mkcert-docker:latest /bin/sh -c "test ! -f mkcert.key && mkcert -install && mkcert -cert-file mkcert.pem -key-file mkcert.key localhost.dev && openssl pkcs12 -export -out mkcert.pfx -in mkcert.pem -inkey mkcert.key -certfile rootCA.pem -passout pass:123;"
```