Skip to content

cert-generator is a tool to generate certs and to simplify the process and complexity of generating certificates.

License

Notifications You must be signed in to change notification settings

hurricane1988/cert-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cert Generator


Description


cert-generator is a tool to generate certs and to simplify the process and complexity of generating certificates.

Getting Started


  • build the exec binary.
make build
bin/cert-generator
  • get help information
bin/cert-generator --help
Usage of bin/cert-generator:
  -ca-common-name string
        The common name of CA.
  -ca-country string
        The country of CA, multiple items separated by ',', Default: CN. (default "CN")
  -ca-domains string
        The domain of CA, multiple items separated by ','.
  -ca-organization string
        The organization of CA, multiple items separated by ','
  -ca-years int
        The validate years of CA, Default: 50. (default 50)
  -cert-path string
        The path to save certificate. (default "/tmp")
  -kubeconfig string
        Paths to a kubeconfig. Only required if out-of-cluster.
  -zap-devel
        Development Mode defaults(encoder=consoleEncoder,logLevel=Debug,stackTraceLevel=Warn). Production Mode defaults(encoder=jsonEncoder,logLevel=Info,stackTraceLevel=Error)
  -zap-encoder value
        Zap log encoding (one of 'json' or 'console')
  -zap-log-level value
        Zap Level to configure the verbosity of logging. Can be one of 'debug', 'info', 'error', or any integer value > 0 which corresponds to custom debug levels of increasing verbosity
  -zap-stacktrace-level value
        Zap Level at and above which stacktraces are captured (one of 'info', 'error', 'panic').
  -zap-time-encoding value
        Zap time encoding (one of 'epoch', 'millis', 'nano', 'iso8601', 'rfc3339' or 'rfc3339nano'). Defaults to 'epoch'.
  • generate a cert
bin/cert-generator -ca-country=china -ca-common-name=shenzhen -ca-domains=kube-system.metrics-server.svc,kube-system.coredns.svc -ca-organization=kubernetes -ca-years=50
--------------------------------------------------------------------------------------------
#   CA Country: china
#   CA Organization: kubernetes
#   CA Domains: kube-system.metrics-server.svc,kube-system.coredns.svc
#   Cert Path: /tmp
#   Common Name: shenzhen
#   Validate Years: 50 years
#   CRT: /tmp/tls.crt
#   Key: /tmp/tls.key
--------------------------------------------------------------------------------------------

About

cert-generator is a tool to generate certs and to simplify the process and complexity of generating certificates.

Resources

License

Stars

Watchers

Forks

Packages

No packages published