code: func HasServerAuth(cert *x509.Certificate) bool {
  	for i := range cert.ExtKeyUsage {
  		if cert.ExtKeyUsage[i] == x509.ExtKeyUsageServerAuth {
  			return true
  		}
  	}
  	return false
  }
docs: // HasServerAuth returns true if the given certificate is a ServerAuth