Documentation ¶
Overview ¶
Package easypki provides helpers to manage a Public Key Infrastructure.
Index ¶
- Variables
- type EasyPKI
- func (e *EasyPKI) CRL(caName string, expire time.Time) ([]byte, error)
- func (e *EasyPKI) GetBundle(caName, name string) (*certificate.Bundle, error)
- func (e *EasyPKI) GetCA(name string) (*certificate.Bundle, error)
- func (e *EasyPKI) Revoke(caName string, cert *x509.Certificate) error
- func (e *EasyPKI) Sign(signer *certificate.Bundle, req *Request) error
- type Request
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCannotSelfSignNonCA = errors.New("cannot self sign non CA request") ErrMaxPathLenReached = errors.New("max path len reached") )
Signing errors.
Functions ¶
This section is empty.
Types ¶
type EasyPKI ¶ added in v1.0.0
EasyPKI wraps helpers to handle a Public Key Infrastructure.
func (*EasyPKI) CRL ¶ added in v1.0.0
CRL builds a CRL for a given CA based on the revoked certs.
func (*EasyPKI) GetBundle ¶ added in v1.0.0
func (e *EasyPKI) GetBundle(caName, name string) (*certificate.Bundle, error)
GetBundle fetches and returns a certificate bundle from the store.
func (*EasyPKI) GetCA ¶ added in v1.0.0
func (e *EasyPKI) GetCA(name string) (*certificate.Bundle, error)
GetCA fetches and returns the named Certificate Authrority bundle from the store.
Click to show internal directories.
Click to hide internal directories.