Helper to generate self signed certificates
This docker image helps to quickly create a self signed certificate. Useful for testing environment only.
You can see all images available to pull from Docker Hub via the Tags page. Docker tag names that begin with a "change type" word such as task, bug, or feature are available for testing and may be removed at any time.
You can clone this repository and manually build it.
cd certshelper
docker build -t fonoster/certshelper:%%VERSION%% .
Otherwise you can pull this image from docker index.
docker pull fonoster/certshelper:latest:%%VERSION%%
The following is a minimal example of using this image.
docker run -it \
-v $(pwd)/certs:/certs \
-e SUBJECT=localhost \
-e CERT_NAME=client \
fonoster/certshelper
Run environment variables are used in the entry point script to render configuration templates. You can specify the values of these variables during docker run, docker-compose up, or in Kubernetes manifests in the env array.
CA_KEY - Path of Certificate Authority key file. Defaults is ca-key.pemCA_CERT - Path to Certificate Authority certificate. Defaults is ca.crtCERT_NAME - Name of the certificate. Default is certSUBJECT - Subject for the certificate. Default is localhostPlease check the gen-cert script for more environment variables.
/certs - Location of the generated certificatesPlease read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
See also the list of contributors who participated in this project.
Copyright (C) 2020 by Fonoster Inc. MIT License (see LICENSE for details).
docker pull fonoster/certshelper:latest