autoca

command module
v0.0.0-...-7ecefd1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL