Service to autogenerate host/client certificates
ca:
cert: "signing-ca.crt"
key: "signing-ca.key"
key_pass: "secret"
db: "serial.db"
cert:
days: 1
web:
port: 8081
cert: "data/hostcert.pem"
key: "data/hostkey.pem"
generate_cert: true
hosts: ["127.0.0.1", "192.169.17.0/24"]
There is a sample client in python to get certificates:
$ ./pyclient/autoca-client -n https://localhost:8081/
Hard core users can use curl
+ jq
$ curl -s 'https://localhost:8081/v1/certificate' -o autoca.out
$ jq -r '.cert?' autoca.out > hostcert.pem
$ jq -r '.key?' autoca.out > hostkey.pem
$ rm autoca.out
This work is published under AGPLv3 license.