Documentation ¶
Index ¶
- type Depot
- func (db *Depot) CA(pass []byte) ([]*x509.Certificate, *rsa.PrivateKey, error)
- func (db *Depot) CreateOrLoadCA(key *rsa.PrivateKey, years int, org, country string) (*x509.Certificate, error)
- func (db *Depot) CreateOrLoadKey(bits int) (*rsa.PrivateKey, error)
- func (db *Depot) HasCN(cn string, allowTime int, cert *x509.Certificate, revokeOldCertificate bool) (bool, error)
- func (db *Depot) Put(cn string, crt *x509.Certificate) error
- func (db *Depot) Serial() (*big.Int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Depot ¶
Depot implements a SCEP certifiacte store using boltdb. https://github.com/boltdb/bolt
func NewBoltDepot ¶
NewBoltDepot creates a depot.Depot backed by BoltDB.
func (*Depot) CA ¶
func (db *Depot) CA(pass []byte) ([]*x509.Certificate, *rsa.PrivateKey, error)
func (*Depot) CreateOrLoadCA ¶
func (db *Depot) CreateOrLoadCA(key *rsa.PrivateKey, years int, org, country string) (*x509.Certificate, error)
func (*Depot) CreateOrLoadKey ¶
func (db *Depot) CreateOrLoadKey(bits int) (*rsa.PrivateKey, error)
Click to show internal directories.
Click to hide internal directories.