easy-ca

command module
v0.0.0-...-13aa9aa Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: MIT Imports: 36 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Easy-CA

Easy-CA is a quick and easy CA handler for x509 certificates.

It's meant to be a drop in replacement of easy-rsa with a lot of exciting features along the way!

output.gif

Or through flags:

password=blih ./easy-ca -p ./pki -e password export --name ca

Usage

Usage:
  easy-ca [flags]
  easy-ca [command]

Available Commands:
  create      
  create-ca   
  crl         
  export      
  help        Help about any command
  init        
  revoke      

Flags:
  -e, --env-password string   Environment variable for password
  -h, --help                  help for easy-ca
  -p, --path string           Path to the easy-ca directory database

Use "easy-ca [command] --help" for more information about a command.

Caveat

Not everything is implemented but the default feature set is!!

Features

  • Raw format using protobuf for compatibility between clients
  • Paranoid encryption by default to store private keys
  • One database file for ease of deployments
  • CLI for admin bulk tasks
  • Unix arguments flags for automated tasks
  • Choice between ecdsa p256 and rsa
  • Export using multiple encoding: PEM, DER
  • Export using multiple format: pkcs12, pkcs8, x509
    • Support arithmetic operation for validity periods
  • CRL revocation

CryptoPasta

  • Use scrypt with 1<<20 rounds
  • 16 bits salt from go's crypto/rand
  • AES in GCM mode for authenticated encryption
  • 256 bits AES key
  • 12 bits nonce from go's crypto/rand for each file -- prepended to the encrypted data
  • salt + scrypt hash are stored in the .pass file which is read before doing anything
  • Derived key is stored for the CLI session in memory
  • Password is either asked from the CLI or specified in environment. NO OTHER WAY.

TODO:

  • List certificates
  • Add x509 v3 Alternative Names constrains from parsing the common name
  • Set command: (path)
  • Req server
  • client/server option to securely issue certificate. Negociate symetric key each side

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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