// loadCert loads a certificate from PEM encoded data
loadCert loads a certificate from PEM encoded data
// loadCert loads a certificate from PEM encoded data
func loadCert(data []byte) *x509.Certificate {
	input := data
	block, _ := pem.Decode(data)
	if block != nil {
		input = block.Bytes
	}
	cert, err := x509.ParseCertificate(input)
	if err != nil {
		log.Error("Failed to parse x509 Certificate ", err)
		return nil
	}
	return cert
}
func loadCert ( data [ ] byte ) * x509 . Certificate { input := data block , _ := pem . Decode ( data ) if block != nil { input = block . Bytes } cert , err := x509 . ParseCertificate ( input ) if err != nil { log . Error ( " " , err ) return nil } return cert }
loadCert loads a certificate from PEM encoded data
loadCert loads a certificate from PEM encoded data