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

Function encodeCertificate

pkg/certs/certs.go:496–498  ·  view source on GitHub ↗
(derBytes []byte)

Source from the content-addressed store, hash-verified

494}
495
496func encodeCertificate(derBytes []byte) []byte {
497 return pem.EncodeToMemory(&pem.Block{Type: "CERTIFICATE", Bytes: derBytes})
498}
499
500func encodePrivateKey(derBytes []byte) []byte {
501 return pem.EncodeToMemory(&pem.Block{Type: ecPrivateKeyPEMBlockType, Bytes: derBytes})

Callers 4

RenewCertificateMethod · 0.85
createCAWithValidityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected