x509

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 11 Imported by: 6

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL