Skip to content
forked from kofemann/autoca

Service to autogenerate host/client certificates

License

Notifications You must be signed in to change notification settings

svemeyer/autoca

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoCa

Service to autogenerate host/client certificates

Config

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"]

HowTo use

python client

There is a sample client in python to get certificates:

$ ./pyclient/autoca-client -n https://localhost:8081/

without special client

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

Alternatives

LICENSE

This work is published under AGPLv3 license.

About

Service to autogenerate host/client certificates

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 86.9%
  • Python 13.1%