Documentation ¶
Index ¶
- func ParsePrivateKeyPEM(data []byte) (crypto.PrivateKey, error)
- func ReadCertificateFile(path string) ([]*x509.Certificate, error)
- func ReadPrivateKeyFile(path string) (crypto.PrivateKey, error)
- func ValidateCodeSigningCertChain(certChain []*x509.Certificate, signingTime *time.Time) error
- func ValidateTimestampingCertChain(certChain []*x509.Certificate) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParsePrivateKeyPEM ¶
func ParsePrivateKeyPEM(data []byte) (crypto.PrivateKey, error)
ParsePrivateKeyPEM parses a PEM as a signing key.
func ReadCertificateFile ¶
func ReadCertificateFile(path string) ([]*x509.Certificate, error)
ReadCertificateFile reads a certificate PEM or DER file.
func ReadPrivateKeyFile ¶
func ReadPrivateKeyFile(path string) (crypto.PrivateKey, error)
ReadPrivateKeyFile reads a key PEM file as a signing key.
func ValidateCodeSigningCertChain ¶
func ValidateCodeSigningCertChain(certChain []*x509.Certificate, signingTime *time.Time) error
ValidateCodeSigningCertChain takes an ordered code signing certificate chain and validates issuance from leaf to root Validates certificates according to this spec: https://github.com/notaryproject/notaryproject/blob/main/specs/signature-specification.md#certificate-requirements
func ValidateTimestampingCertChain ¶ added in v1.1.0
func ValidateTimestampingCertChain(certChain []*x509.Certificate) error
ValidateTimestampingCertChain takes an ordered time stamping certificate chain and validates issuance from leaf to root Validates certificates according to this spec: https://github.com/notaryproject/notaryproject/blob/main/specs/signature-specification.md#certificate-requirements
Types ¶
This section is empty.