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

Function encodePrivateKey

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

Source from the content-addressed store, hash-verified

498}
499
500func encodePrivateKey(derBytes []byte) []byte {
501 return pem.EncodeToMemory(&pem.Block{Type: ecPrivateKeyPEMBlockType, Bytes: derBytes})
502}
503
504func getCertificateDuration() time.Duration {
505 duration := configuration.Current.CertificateDuration

Calls

no outgoing calls

Tested by

no test coverage detected