Documentation ¶
Overview ¶
Package certstore provides functionality for creation and mantainenace of X.509 certificate stores.
Index ¶
- type Registry
- func (registry *Registry) CertPools() (*x509.CertPool, *x509.CertPool, error)
- func (registry *Registry) CreateCertificate(name string, factory certs.CertificateFactory, user string) (string, error)
- func (registry *Registry) CreateCertificateRequest(name string, factory certs.CertificateRequestFactory, user string) (string, error)
- func (registry *Registry) Entries() (*RegistryEntries, error)
- func (registry *Registry) Entry(name string) (*RegistryEntry, error)
- func (registry *Registry) Merge(other *Registry, user string) error
- func (registry *Registry) MergeCertificate(name string, certificate *x509.Certificate, user string) (string, bool, error)
- func (registry *Registry) MergeCertificateRequest(name string, certificateRequest *x509.CertificateRequest, user string) (string, bool, error)
- func (registry *Registry) MergeKey(name string, key crypto.PrivateKey, user string) (string, bool, error)
- func (registry *Registry) MergeRevocationList(name string, revocationList *x509.RevocationList, user string) (string, bool, error)
- func (registry *Registry) Name() string
- type RegistryEntries
- type RegistryEntry
- func (entry *RegistryEntry) Attributes() map[string]string
- func (entry *RegistryEntry) CanIssue(keyUsage x509.KeyUsage) bool
- func (entry *RegistryEntry) Certificate() *x509.Certificate
- func (entry *RegistryEntry) CertificateRequest() *x509.CertificateRequest
- func (entry *RegistryEntry) HasCertificate() bool
- func (entry *RegistryEntry) HasCertificateRequest() bool
- func (entry *RegistryEntry) HasKey() bool
- func (entry *RegistryEntry) HasRevocationList() bool
- func (entry *RegistryEntry) IsCA() bool
- func (entry *RegistryEntry) IsRoot() bool
- func (entry *RegistryEntry) Key(user string) crypto.PrivateKey
- func (entry *RegistryEntry) Name() string
- func (entry *RegistryEntry) ResetRevocationList(factory certs.RevocationListFactory, user string) (*x509.RevocationList, error)
- func (entry *RegistryEntry) RevocationList() *x509.RevocationList
- func (entry *RegistryEntry) SetAttributes(attributes map[string]string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func (*Registry) CreateCertificate ¶
func (*Registry) CreateCertificateRequest ¶
func (*Registry) Entries ¶
func (registry *Registry) Entries() (*RegistryEntries, error)
func (*Registry) MergeCertificate ¶
func (*Registry) MergeCertificateRequest ¶
func (*Registry) MergeRevocationList ¶
type RegistryEntries ¶
type RegistryEntries struct {
// contains filtered or unexported fields
}
func (*RegistryEntries) Find ¶
func (entries *RegistryEntries) Find(match func(entry *RegistryEntry) bool) (*RegistryEntry, error)
func (*RegistryEntries) Next ¶
func (entries *RegistryEntries) Next() (*RegistryEntry, error)
type RegistryEntry ¶
type RegistryEntry struct {
// contains filtered or unexported fields
}
func (*RegistryEntry) Attributes ¶
func (entry *RegistryEntry) Attributes() map[string]string
func (*RegistryEntry) Certificate ¶
func (entry *RegistryEntry) Certificate() *x509.Certificate
func (*RegistryEntry) CertificateRequest ¶
func (entry *RegistryEntry) CertificateRequest() *x509.CertificateRequest
func (*RegistryEntry) HasCertificate ¶
func (entry *RegistryEntry) HasCertificate() bool
func (*RegistryEntry) HasCertificateRequest ¶
func (entry *RegistryEntry) HasCertificateRequest() bool
func (*RegistryEntry) HasKey ¶
func (entry *RegistryEntry) HasKey() bool
func (*RegistryEntry) HasRevocationList ¶
func (entry *RegistryEntry) HasRevocationList() bool
func (*RegistryEntry) IsCA ¶
func (entry *RegistryEntry) IsCA() bool
func (*RegistryEntry) IsRoot ¶
func (entry *RegistryEntry) IsRoot() bool
func (*RegistryEntry) Key ¶
func (entry *RegistryEntry) Key(user string) crypto.PrivateKey
func (*RegistryEntry) Name ¶
func (entry *RegistryEntry) Name() string
func (*RegistryEntry) ResetRevocationList ¶
func (entry *RegistryEntry) ResetRevocationList(factory certs.RevocationListFactory, user string) (*x509.RevocationList, error)
func (*RegistryEntry) RevocationList ¶
func (entry *RegistryEntry) RevocationList() *x509.RevocationList
func (*RegistryEntry) SetAttributes ¶
func (entry *RegistryEntry) SetAttributes(attributes map[string]string) error
Directories ¶
Path | Synopsis |
---|---|
Package certs provides functions for X.509 certificate management.
|
Package certs provides functions for X.509 certificate management. |
acme
Package acme provides [LEGO] related utility functions.
|
Package acme provides [LEGO] related utility functions. |
Package keys implements a unified interface for key handling.
|
Package keys implements a unified interface for key handling. |
Package storage provides different backends for versioned data storage.
|
Package storage provides different backends for versioned data storage. |
Click to show internal directories.
Click to hide internal directories.