func NewVerifier(rawCert []byte) (*Verifier, error) {
	cert, err := x509.ParseCertificate(rawCert)
	if err != nil {
		return nil, err
	}
	return &Verifier{
		Certificate: cert,
	}, nil
}
NewVerifier creates Verifier from shared root certificates pool and raw verifying entity certificate.
package crypto
import (
	"crypto/x509"
)
type Verifier struct {
	Certificate *x509.Certificate
}