Security & identity

GlobalProtect Errors and Fixes: Certificate, Pre-Login and Tunnel Drops

Fix the GlobalProtect VPN errors admins see most: "The server certificate is invalid", pre-login failures, expired certificates, Android IP-address certificates and keepalive tunnel drops.

By EpiFive Editorial TeamReviewed/updated 11 min readHow we check our guides

This article contains affiliate links. If you buy through them, EpiFive may earn a commission at no extra cost to you. Details.

On this page

Most GlobalProtect connection failures are certificate problems: the name on the portal or gateway certificate does not match the address the client uses, the certificate is expired or untrusted, or it breaks a validation rule such as the allowed hash or key size. Read the exact message the client shows, find it in the tables below, and fix the certificate or the gateway name on the Palo Alto Networks firewall.

Who this is for and what you will have at the end

This guide is for administrators who run GlobalProtect on a Palo Alto Networks firewall and for helpdesk staff who take the first call. By the end you will be able to separate a name mismatch from an untrusted or expired certificate, check a Linux or Windows client from the command line, and tell a certificate problem from a tunnel that drops because keepalives are lost. Every message and menu path comes from a Palo Alto Networks page listed in References; where those pages give no fix, this guide says so rather than guess.

If you also support Fortinet clients, see FortiClient VPN errors and fixes. For the bigger picture of remote access design, read zero trust enterprise remote access architecture.

Before you start: collect the facts

Before changing anything, collect four things from the user or the test device.

  1. The exact message on screen. GlobalProtect messages that look alike have different causes.
  2. The platform: Windows, macOS, Linux, Android or iOS, and the app version.
  3. Whether the failure is at the portal (first connection, before any gateway is chosen), at the gateway, or after the tunnel is up.
  4. Whether anything changed: a new portal or gateway, a renewed certificate, a changed hostname, or a firewall upgrade.

Palo Alto's community troubleshooting article lists "Could not connect to Portal" and certificate-related errors as the common symptoms and recommends checking name resolution and reachability first. Do that from the failing network:

nslookup vpn.contoso.com
ping vpn.contoso.com

If the name does not resolve, or the portal address in the app has a typo, nothing below applies yet. Fix DNS or the address first. Note that ping may be blocked on purpose; a failed ping alone does not prove the portal is down, so also open https://vpn.contoso.com in a browser. A certificate warning there tells you the certificate is the problem; no response at all points to the network path or a firewall rule.

Error: "The server certificate is invalid. Please contact your IT administrator"

Palo Alto's knowledge base describes this message on PAN-OS 8.1 and later for a newly configured portal and gateway. The cause it gives: the gateway name in the portal's external gateway configuration does not match the Common Name (CN) of the certificate in the SSL/TLS Service Profile attached to the gateway.

The documented fix is to line up three places:

  1. Go to Network > GlobalProtect > Portals, open the portal, then Agent > External > External Gateways. Write down the gateway's Address.
  2. Go to Device > Certificate Management > Certificates and check that the certificate's CN matches that address.
  3. Go to Network > GlobalProtect > Gateways, open the gateway and its Authentication tab. Note the SSL/TLS Service Profile name.
  4. Go to Device > Certificate Management > SSL/TLS Service Profile, open that profile and set its certificate to the one you verified in step 2.
  5. Commit, then test the connection.

A practical rule that follows from this: pick one fully qualified name per gateway, such as gw1.contoso.com, use it as the External Gateway address, put the same name in the certificate, and make DNS resolve it to the gateway's public IP. Three different spellings in three places is the usual source of the mismatch.

Errors that mean the client does not trust the certificate

If the certificate name is right but the client still refuses it, the client probably does not trust the issuing CA, or the certificate has expired.

Expired certificate

In the admin guide's FIPS-CC troubleshooting table, an expired server certificate produces: "Failed validation of the X.509v3 certificate: The portal certificate is not within its validity period." The fix is to renew the certificate and update the SSL/TLS Service Profile. The page gives no resolution column; renewal is the obvious remedy.

Add a calendar reminder at least 30 days before each portal and gateway certificate expires. Open a browser to the portal URL from a managed laptop each month; if the certificate chain is incomplete, browsers and clients differ in how they react, so test on more than one platform.

Untrusted issuer on Linux

For a Linux CentOS client, a Palo Alto KB article lists these errors: "There is a problem with the security certificate, so the identity of xxxxxxx cannot be verified." and "Error: Gateway gateway: The server certificate is invalid." The article names two causes: the certificate is not trusted by the host, or it has the CA attribute set and so is unsuitable for server authentication. To tell which, run curl in verbose mode against the portal:

curl -vvI https://vpn.contoso.com

According to the article, an untrusted issuer shows NSS error -8172 (SEC_ERROR_UNTRUSTED_ISSUER) and a CA-attribute certificate shows -8102 (SEC_ERROR_INADEQUATE_KEY_USAGE).

For an untrusted issuer, export the root and any intermediate CA certificates from the firewall and add them to the trust store, as the article documents:

sudo cp contoso-root-ca.crt /etc/pki/ca-trust-source/anchors/
sudo update-ca-trust extract

If the trust store is not active, the article says to enable it with update-ca-trust enable. If the certificate itself is marked as a CA, an imported certificate has to be reissued without the CA attribute. For a self-signed setup, the article's fix is to create a self-signed root CA on the firewall under Device > Certificate Management > Certificates, issue a new server certificate signed by it, point the SSL/TLS Service Profile at the new certificate, commit, and import the root CA on the Linux host.

Certificate with an IP address as its name (Android)

Palo Alto's KB says that on Android 6.0 and later the app can fail with "Cannot connect to GlobalProtect portal" when the root CA is in the device's Trusted Credentials and the certificate's CN is an IP address. The gp.log shows a hostname verification failure such as "Hostname 192.168.206.1 not verified." The cause is that from Android 6.0 the same IP must appear as an iPAddress Subject Alternative Name (SAN). The recommended fix is to reissue the portal and gateway certificate with an iPAddress SAN and deploy it. The KB also describes removing the CA from Trusted Credentials as a workaround, which it does not recommend, because users then have to verify the portal manually.

The simplest long-term fix is to use a DNS name in the certificate and the app instead of an IP address.

Errors that mean the certificate breaks a validation rule

When FIPS-CC mode is on, the client applies stricter checks. Palo Alto's admin guide page "Resolve FIPS-CC Mode Issues" lists the messages. The table below follows that page; the Fix column is the straightforward correction of each cause, since the page itself has no resolution column.

CauseMessage on the clientFix
Hash algorithm not allowed (SHA-1, MD5)Failed to pre-login to the portal with return value 0(0).Reissue with an approved SHA-2 hash
RSA key shorter than 2048 bitsFailed to pre-login to the portal with return value 0(0).Use an RSA key of at least 2048 bits
ECDSA key not on P-256, P-384 or P-521Failed to pre-login to the portal with return value 0(0).Use a permitted curve
Invalid RSA public exponent (Windows)FIPS-CC error: Non-compliant FIPS-CC mode certificate.Reissue the certificate
Invalid RSA public exponent (macOS)CSSMERR_CSP_UNSUPPORTED_KEY_SIZEReissue the certificate
Certificate expiredFailed validation of the X.509v3 certificate: The portal certificate is not within its validity period.Renew
Certificate revoked (OCSP)Failed validation of the X509v3 certificate. Certificate revoked.Replace the certificate
Extended Key Usage field missingFailed to pre-login to the portal with return value 0(0).Add the field
Server Authentication missing from Extended Key UsageFailed to pre-login to the portal with return value 0(0).Add the purpose

Notice that one message, "return value 0(0)", covers five different causes. To find the cause, inspect the certificate rather than the message. On any machine with OpenSSL, export the certificate and print it:

openssl x509 -in portal.crt -noout -text

Check the signature algorithm, the public key size and the X509v3 Extended Key Usage section for TLS Web Server Authentication. These fields are standard OpenSSL output, so compare them with the table above.

Tunnel drops: keepalive timeout

A different failure is a tunnel that connects and then drops. Palo Alto's KB on keepalive timeouts says PanGps.log shows: "Too many outstanding keepalive and no response from GP gateway, disconnect tunnel" (Info 1011), on PAN-OS 8.1 and later.

The same article gives the mechanics:

  • Keepalives are ICMP packets exchanged inside the tunnel between the client's private IP and the gateway's public IP.
  • By default the client sends one every 10 seconds, and after 5 missed keepalives (about 50 seconds) it tears the tunnel down and retries.
  • They appear in PanGPS logs only at dump log level.
  • They are sent only when there is no other traffic on the connection.

The article states that the way to troubleshoot is with Wireshark captures on both sides: the client's virtual and physical adapters and the gateway. When the user reports a drop, check whether the client received keepalives. If it did, the gateway and network are ruled out. If it did not, look at the network path between gateway and client for dropped packets and high CPU, and check the gateway capture to confirm the gateway sent them. If the gateway is at fault, the article says to engage Palo Alto Networks TAC. It lists no CLI fix, so do not expect a setting that makes the symptom disappear.

Practical triage for the helpdesk: ask whether drops happen on every network or only one (hotel, home router, mobile hotspot), because a single-network pattern points at that network's handling of the tunnel traffic.

Collecting logs for Palo Alto support

Palo Alto's admin guide describes an optional feature in which the app sends troubleshooting reports and diagnostic logs to Strata Logging Service when a user reports an issue; it is disabled by default and needs portal configuration. Admins view the records in the hub under Explore, then Endpoint/GlobalProtect App Troubleshooting. If the user consented to diagnostic tests, a Debug Logs button downloads a reportid_GlobalProtectLogs.zip package. Without that feature, collect PanGps.log and PanGPS logs from the client and a packet capture, and attach them to the support case.

Checklist

  • Copy the exact message and platform before changing anything.
  • Confirm DNS and a browser connection to the portal URL.
  • Match the gateway address, the certificate CN and the SSL/TLS Service Profile.
  • Check expiry, hash, key size and Extended Key Usage with OpenSSL.
  • On Linux, run curl -vvI and read the NSS error; on Android, check for an iPAddress SAN.
  • For drops, capture on both client and gateway before escalating.

What we checked

  • Opened Palo Alto Networks knowledge base article kA10g000000PNWD on 2026-12-06; the message "The server certificate is invalid. Please contact your IT administrator" and the five-step fix through the Portals, Certificates, Gateways and SSL/TLS Service Profile menus are as quoted above.
  • Opened the "Resolve FIPS-CC Mode Issues" page of the GlobalProtect 10.1 admin guide on 2026-12-06 and copied the nine cause and message pairs into the table; the page has no fix column, so the Fix column is our reading of each cause.
  • Opened the Linux (kA10g000000PO4F), Android (kA10g000000Cloy) and keepalive (kA10g000000PPgZ) knowledge base articles on 2026-12-06; the NSS error numbers, the 10-second and 5-missed-keepalive defaults and the gp.log example come from them.
  • Opened the admin guide pages on app log collection on 2026-12-06; the Explore path and the reportid_GlobalProtectLogs.zip name come from there.
  • Cross-checked the "certificate expired or name mismatch" causes between the Palo Alto community article's description in search results and the knowledge base pages. The community article itself returned HTTP 403, so it was not opened.
  • Arithmetic: 5 missed keepalives at one every 10 seconds is 50 seconds.
  • Not checked: no firewall, portal or client was available, so no command was run against GlobalProtect; the OpenSSL command shown is standard and was not run here. Steps follow Palo Alto's documentation as of 2026-12-06 and menu names can differ between PAN-OS versions.

Last tested: 2026-12-06

References

Questions people ask

Why does GlobalProtect say "The server certificate is invalid. Please contact your IT administrator"?

Palo Alto Networks' knowledge base ties this message, on a newly configured portal and gateway, to a mismatch between the gateway address in the portal's external gateway list and the Common Name of the certificate in the SSL/TLS Service Profile used by the gateway. Make the address and the certificate name match, then commit.

What does "Failed to pre-login to the portal with return value 0(0)" mean?

In the FIPS-CC mode troubleshooting table, this message appears when the server certificate breaks a validation rule: a disallowed hash such as SHA-1 or MD5, an RSA key under 2048 bits, an unsupported ECDSA curve, or a missing Extended Key Usage field or Server Authentication purpose. Reissue the certificate to meet those rules.

Why does GlobalProtect on Android say "Cannot connect to GlobalProtect portal"?

Palo Alto's KB says that from Android 6.0, a certificate whose Common Name is an IP address must also list that IP as an iPAddress Subject Alternative Name. If it does not, hostname verification fails. Reissue the portal and gateway certificate with the SAN entry.

Why does the GlobalProtect tunnel disconnect after about 50 seconds of silence?

By default the client sends a keepalive every 10 seconds and tears the tunnel down after 5 missed ones, about 50 seconds, according to Palo Alto's KB. The cause is packets lost between client and gateway or a gateway problem, which only captures on both sides can separate.

GlobalProtectPalo Alto NetworksVPNCertificatesTroubleshooting