A simple docker container Self Signed Certificate generator for testing purpose.
🐳 Image is build anb pushed to dockerhub at ssc_generator
- First set the env var :
CERT_COUNTRY: two-letter code of your country. For instance, USCERT_STATE: name of the state where your organization is officially registered. For example, CaliforniaCERT_LOCALITY: locality or city name where your company resides: For example, San JoseCERT_ORGANIZATION: official name of your organizationCERT_ORGANIZATIONAL_UNIT: unit name within your organization responsible for managing SSL certificates. For example, IT.CERT_COMMON_NAME: Fully Qualified Domain Name (FQDN) you want to secure or your name. For instance "test.com"
Note : these var can be added in a env file, see env.example file
- Start the container using a volume to store generated key and certificate on the host :
- using env file :
cp example.env .env
# edit .env
docker run --env-file .env -v "<host_certs_path>:/srv/certs" tinycompany/ssc_generator:latest
- using env in command :
docker run --env CERT_COUNTRY=US \
--env CERT_STATE=California \
--env CERT_LOCALITY=San-Jose \
--env CERT_ORGANIZATION=tiny-company \
--env CERT_ORGANIZATIONAL_UNIT=IT \
--env CERT_COMMON_NAME=test \
-v "<host_certs_path>:/srv/certs" \
tinycompany/ssc_generator:latest