Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aem-design/docker-mkcert
https://github.com/aem-design/docker-mkcert
Last synced: 7 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 (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-05T01:47:39.000Z (over 1 year ago)
- Last Synced: 2024-11-07T01:35:19.024Z (about 2 months ago)
- Language: PowerShell
- Size: 19.5 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
## Make Cert
[![build_status](https://github.com/aem-design/docker-mkcert/workflows/build/badge.svg)](https://github.com/aem-design/docker-mkcert/actions?query=workflow%3Abuild)
[![github license](https://img.shields.io/github/license/aem-design/docker-mkcert)](https://github.com/aem-design/docker-mkcert)
[![github issues](https://img.shields.io/github/issues/aem-design/docker-mkcert)](https://github.com/aem-design/docker-mkcert)
[![github last commit](https://img.shields.io/github/last-commit/aem-design/docker-mkcert)](https://github.com/aem-design/docker-mkcert)
[![github repo size](https://img.shields.io/github/repo-size/aem-design/docker-mkcert)](https://github.com/aem-design/docker-mkcert)
[![docker stars](https://img.shields.io/docker/stars/aemdesign/mkcert)](https://hub.docker.com/r/aemdesign/mkcert)
[![docker pulls](https://img.shields.io/docker/pulls/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;"
```