Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultAlgo = "rsa" DefaultSize = 2048 )
Variables ¶
This section is empty.
Functions ¶
func NewRequest ¶
func NewRequest(cn string, opts ...Option) *csr.CertificateRequest
func SetLogger ¶
func SetLogger(fieldLogger logrus.FieldLogger)
Types ¶
type Option ¶
type Option func(r *csr.CertificateRequest)
func WithKeyRequest ¶
func WithKeyRequest(kr *csr.KeyRequest) Option
type PKI ¶ added in v0.0.2
type PKI interface { Generate(req *csr.CertificateRequest, profile Profile) (cert, key []byte, err error) CACert() []byte CAKey() []byte NewIntermediate(csr *csr.CertificateRequest) (PKI, error) Save(certPath string, keyPath string) error }
func NewPKIFromBytes ¶
func NewPKIFromCSR ¶
func NewPKIFromCSR(csr *csr.CertificateRequest) (PKI, error)
func NewPKIFromFiles ¶
Click to show internal directories.
Click to hide internal directories.