MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / TLSCertificate

Method TLSCertificate

pkg/certs/selfsigned.go:87–89  ·  view source on GitHub ↗

TLSCertificate converts the key pair to a tls.Certificate.

()

Source from the content-addressed store, hash-verified

85
86// TLSCertificate converts the key pair to a tls.Certificate.
87func (pair KeyPair) TLSCertificate() (tls.Certificate, error) {
88 return tls.X509KeyPair(pair.Certificate, pair.Private)
89}
90
91// PublicKeyFingerprint returns the hex-encoded SHA-256 digest of the certificate's
92// SubjectPublicKeyInfo. It depends only on the public key, so two certificates that

Callers 4

parsedCertFunction · 0.80
selfsigned_test.goFile · 0.80

Calls

no outgoing calls

Tested by 1

parsedCertFunction · 0.64