Documentation ¶
Index ¶
- Constants
- Variables
- func FindChain(key crypto.PublicKey, pool []*x509.Certificate) []*x509.Certificate
- func ValidateChain(chain []*x509.Certificate) error
- type Entry
- type KeyStore
- func NewKeyStore(conf config.Configuration, logger zerolog.Logger) (KeyStore, error)
- func NewKeyStoreFromKey(privateKey crypto.Signer) (KeyStore, error)
- func NewKeyStoreFromPEMBytes(pemBytes []byte, password string) (KeyStore, error)
- func NewKeyStoreFromPEMFile(pemFilePath, password string) (KeyStore, error)
Constants ¶
View Source
const ( AlgRSA = "RSA" AlgECDSA = "ECDSA" )
Variables ¶
View Source
var ErrNoSuchKey = errors.New("no such key")
View Source
var Module = fx.Options( fx.Provide(NewKeyStore), )
nolint
Functions ¶
func FindChain ¶
func FindChain(key crypto.PublicKey, pool []*x509.Certificate) []*x509.Certificate
func ValidateChain ¶
func ValidateChain(chain []*x509.Certificate) error
Types ¶
type Entry ¶
type Entry struct { KeyID string Alg string KeySize int PrivateKey crypto.Signer CertChain []*x509.Certificate }
func (*Entry) JOSEAlgorithm ¶
func (e *Entry) JOSEAlgorithm() jose.SignatureAlgorithm
Click to show internal directories.
Click to hide internal directories.