π Generate, manage and use self signed root/leaf tls certificates for local development β¨just 3MB π
743
realmq/dev-ca is a docker image for generating self signed root and leaf certificates for local development,
making it easy to manage and use local dev certificates.
localhost).127.0.0.1)Generate dev certificates to local directory via docker:
mkdir -p certificates
docker run --rm \
-v "${PWD}/certificates:/data/certificates" \
-u $(id -u ${user}):$(id -g ${user}) \
-e DOMAIN="my-org.local" \
realmq/dev-ca
-u $(id -u ${user}):$(id -g ${user}) makes sure your certificates are accessible by current user. If you omit this option certificates are owned by root:root.-e SAN="another.tld 10.10.0.1"Install our cli wrapperβ :
sudo curl -L https://raw.githubusercontent.com/realmq/dev-ca/master/dev-ca.sh -o /usr/local/bin/dev-ca
sudo chmod a+rx /usr/local/bin/dev-ca
Use the CLI tool to generate local dev certificates:
dev-ca --domain="my-org.local"
-d|--domain parameter. (Defaults to localhost)-s|--san parameter. (Defaults to ${HOSTNAME} 127.0.0.1)-v|--volume parameter. (Defaults to ${CWD}/certificates)-u|--user parameter. (Defaults to ${USER})Copyright (c) 2019 RealMQ GmbHβ .
The files in this archive are released under the MIT Licenseβ .
Content type
Image
Digest
Size
2.9 MB
Last updated
over 7 years ago
docker pull realmq/dev-ca