func IsPemCA(pemData []byte) (bool, error) {
	certs, _, err := UnmarshalPemData(pemData)
	if err != nil {
		return false, errors.Trace(err)
	}
	if len(certs) == 0 {
		return false, errors.New("no certificates in pem bundle")
	}
	return certs[0].IsCA, nil
}
// IsPemCA returns true if the supplied pem certificate is a CA
IsPemCA returns true if the supplied pem certificate is a CA
// IsPemCA returns true if the supplied pem certificate is a CA
func IsPemCA(pemData []byte) (bool, error) {
	certs, _, err := UnmarshalPemData(pemData)
	if err != nil {
		return false, errors.Trace(err)
	}
	if len(certs) == 0 {
		return false, errors.New("no certificates in pem bundle")
	}
	return certs[0].IsCA, nil
}
func IsPemCA ( pemData [ ] byte ) ( bool , error ) { certs , _ , err := UnmarshalPemData ( pemData ) if err != nil { return false , errors . Trace ( err ) } if len ( certs ) == 0 { return false , errors . New ( " " ) } return certs [ 0 ] . IsCA , nil }
IsPemCA returns true if the supplied pem certificate is a CA
IsPemCA returns true if the supplied pem certificate is a CA