Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kamatama41/test-cert-generator
Docker image to generate self-signed client/server certs
https://github.com/kamatama41/test-cert-generator
Last synced: 7 days ago
JSON representation
Docker image to generate self-signed client/server certs
- Host: GitHub
- URL: https://github.com/kamatama41/test-cert-generator
- Owner: kamatama41
- License: mit
- Created: 2019-04-21T17:16:44.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-27T05:05:02.000Z (almost 4 years ago)
- Last Synced: 2023-03-24T06:50:19.278Z (over 1 year ago)
- Language: Shell
- Homepage: https://hub.docker.com/r/kamatama41/test-cert-generator
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# test-cert-generator
Docker image to generate self-signed client/server certs. The certs are intended to be used for tests, so you should not apply them to actual applications.
## Usage
Just run the container, so that 7 files will be generated on `/root/work` on the container.
Each password for P12 files is `p@ssw0rd`.```sh
$ docker run --rm -v $(pwd)/work:/root/work kamatama41/test-cert-generator
$ ls work
ca-chain.cert.pem client.cert.pem client.key.pem client.p12 example.com.cert.pem example.com.key.pem example.com.p12
```You can configure some parameters by following environment variables:
- `PRIVATE_KEY_PASSWORD`: Master password for all private keys (default: `p@ssw0rd`)
- `SERVER_COMMON_NAME`: Common name for the server cert (default: `example.com`)
- `SERVER_P12_PASSWORD`: Password for P12 file of the server key pair (default: `p@ssw0rd`)
- `CLIENT_COMMON_NAME`: Common name for the client cert (default: `client`)
- `CLIENT_P12_PASSWORD`: Password for P12 file of the client key pair (default: `p@ssw0rd`)