bolt

package
v0.0.0-...-d6b471c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Depot

type Depot struct {
	*bolt.DB
}

Depot implements a SCEP certifiacte store using boltdb. https://github.com/boltdb/bolt

func NewBoltDepot

func NewBoltDepot(db *bolt.DB) (*Depot, error)

NewBoltDepot creates a depot.Depot backed by BoltDB.

func (*Depot) CA

func (db *Depot) CA(pass []byte, options ...string) ([]*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)

func (*Depot) FailureNotify

func (db *Depot) FailureNotify(cert *x509.Certificate, m *scep.CSRReqMessage, message string)

func (*Depot) HasCN

func (db *Depot) HasCN(cn string, allowTime int, cert *x509.Certificate, revokeOldCertificate bool, options ...string) (bool, error)

func (*Depot) Put

func (db *Depot) Put(cn string, crt *x509.Certificate, options ...string) error

func (*Depot) Serial

func (db *Depot) Serial(options ...string) (*big.Int, error)

func (*Depot) SuccessNotify

func (db *Depot) SuccessNotify(cert *x509.Certificate, m *scep.CSRReqMessage, message string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL