code: func EncodeCertPEM(cert *x509.Certificate) []byte {
  	block := pem.Block{
  		Type:  CertificateBlockType,
  		Bytes: cert.Raw,
  	}
  	return pem.EncodeToMemory(&block)
  }
docs: // EncodeCertPEM returns PEM-endcoded certificate data