src/server/pkg/cert/cert.go
func PublicCertToPEM(cert *tls.Certificate) []byte {
	return pem.EncodeToMemory(&pem.Block{
		Type:  "CERTIFICATE",
		Bytes: cert.Certificate[0],
	})
}
func PublicCertToPEM(cert *tls.Certificate) []byte {
	return pem.EncodeToMemory(&pem.Block{
		Type:  "CERTIFICATE",
		Bytes: cert.Certificate[0],
	})
}
// PublicCertToPEM serializes the public x509 cert in 'cert' to a PEM-formatted
// block