Documentation
¶
Overview ¶
Package issuance creates identities and bounded CA transition certificates.
Index ¶
- type Authority
- func (a *Authority) CheckIdentity(pair KeyPair, name string, usage x509.ExtKeyUsage) (time.Time, error)
- func (a *Authority) CheckTransition(pair KeyPair, previousCA []byte, until time.Time) error
- func (a *Authority) CrossSign(next *Authority, now, until time.Time) ([]byte, error)
- func (a *Authority) ExpiresAt() time.Time
- func (a *Authority) Issue(dnsName string, usage x509.ExtKeyUsage, now time.Time, lifetime time.Duration) (KeyPair, error)
- func (a *Authority) KeyPair() (KeyPair, error)
- type KeyPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authority ¶
type Authority struct {
// contains filtered or unexported fields
}
func NewAuthority ¶
func ParseAuthority ¶
ParseAuthority allows expired CAs so callers can recover their persisted state.
func (*Authority) CheckIdentity ¶
func (a *Authority) CheckIdentity(pair KeyPair, name string, usage x509.ExtKeyUsage) (time.Time, error)
CheckIdentity verifies persisted identity material even after its expiry.
func (*Authority) CheckTransition ¶
func (*Authority) CrossSign ¶
CrossSign bridges old trust to the next CA only until the supplied deadline.
Click to show internal directories.
Click to hide internal directories.