Documentation ¶
Index ¶
- func GetTimestampedSignature(sigBytes []byte, tsaClient client.TimestampAuthorityClient) ([]byte, error)
- func NewSigner(inner cosign.Signer, tsaClient client.TimestampAuthorityClient) cosign.Signer
- func SplitPEMCertificateChain(pem []byte) (leaves, intermediates, roots []*x509.Certificate, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTimestampedSignature ¶
func GetTimestampedSignature(sigBytes []byte, tsaClient client.TimestampAuthorityClient) ([]byte, error)
GetTimestampedSignature queries a timestamp authority to fetch an RFC3161 timestamp. sigBytes is an opaque blob, but is typically a signature over an artifact.
func SplitPEMCertificateChain ¶
func SplitPEMCertificateChain(pem []byte) (leaves, intermediates, roots []*x509.Certificate, err error)
SplitPEMCertificateChain returns a list of leaf (non-CA) certificates, a certificate pool for intermediate CA certificates, and a certificate pool for root CA certificates
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.