An open API service indexing awesome lists of open source software.

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

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
```