code: func PEMToCertPool(pemCerts []byte) (*x509.CertPool, error) {
  	if len(pemCerts) == 0 {
  		return nil, nil
  	}
  
  	certPool := x509.NewCertPool()
  	if !certPool.AppendCertsFromPEM(pemCerts) {
  		return nil, errors.New("failed to load cert pool")
  	}
  
  	return certPool, nil
  }
docs: // PEMToCertPool concerts PEM certificates to a CertPool.