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 ¶
EasyPKI wraps helpers to handle a Public Key Infrastructure.
func (*EasyPKI) GetBundle ¶
func (e *EasyPKI) GetBundle(caName, name string) (*certificate.Bundle, error)
GetBundle fetches and returns a certificate bundle from the store.
func (*EasyPKI) GetCA ¶
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.