code: func getAttributesFromCert(cert *x509.Certificate) ([]byte, error) {
  	for _, ext := range cert.Extensions {
  		if isAttrOID(ext.Id) {
  			return ext.Value, nil
  		}
  	}
  	return nil, nil
  }
docs: // Get the attribute info from a certificate extension, or return nil if not found