MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / loadCertificates

Function loadCertificates

app/cli/pkg/action/workflow_run_describe.go:418–429  ·  view source on GitHub ↗
(certPath string)

Source from the content-addressed store, hash-verified

416}
417
418func loadCertificates(certPath string) ([]*x509.Certificate, error) {
419 cert, err := blob.LoadFileOrURL(certPath)
420 if err != nil {
421 return nil, fmt.Errorf("loading certificate: %w", err)
422 }
423 certs, err := cryptoutils.LoadCertificatesFromPEM(bytes.NewReader(cert))
424 if err != nil {
425 return nil, fmt.Errorf("loading certificates: %w", err)
426 }
427
428 return certs, nil
429}

Callers 1

verifyEnvelopeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected