项目作者: lu4p

项目描述 :
Utility to generate a TLS Certificate.
高级语言: Go
项目地址: git://github.com/lu4p/genCert.git
创建时间: 2019-01-19T11:28:04Z
项目社区:https://github.com/lu4p/genCert

开源协议:The Unlicense

下载


CircleCI
Go Report Card

Generate a TLS certificate

  1. cd ~
  2. go get -u -v github.com/lu4p/genCert
  3. genCert --help
  1. Usage of genCert:
  2. -ca
  3. whether this cert should be its own Certificate Authority
  4. -duration duration
  5. Duration that certificate is valid for (default 8760h0m0s)
  6. -ecdsa-curve string
  7. ECDSA curve to use to generate a key. Valid values are P224, P256 (recommended), P384, P521
  8. -host string
  9. Comma-separated hostnames and IPs to generate a certificate for
  10. -rsa-bits int
  11. Size of RSA key to generate. Ignored if --ecdsa-curve is set (default 2048)
  12. -start-date string
  13. Creation date formatted as Jan 1 15:04:05 2011

Example Certificate:

  1. genCert --ca --ecdsa-curve P384 --host example.tld

This will result in the PrivateKey key.pem and the TLS-Certificate cert.pem

Note: The PrivateKey should be kept PRIVATE, if the PrivateKey is disclosed an attacker is able to:

  • imperson you
  • decrypt your traffic
  • etc.