Documentation ¶
Index ¶
Constants ¶
View Source
const ( AlgRSA = "RSA" AlgECDSA = "ECDSA" )
Variables ¶
View Source
var ErrNoCertificatePresent = errors.New("no certificate present")
View Source
var ErrNoSuchKey = errors.New("no such key")
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
func (*Entry) TLSCertificate ¶
func (e *Entry) TLSCertificate() (tls.Certificate, error)
Click to show internal directories.
Click to hide internal directories.