This guide configures Smallstep to issue client certificates for Palo Alto Networks GlobalProtect on Windows, macOS, and Linux. It then configures PAN-OS to authenticate GlobalProtect users with only those certificates.

The guide has three parts:

  1. Client support. Which GlobalProtect clients can use Smallstep certificates.
  2. Smallstep configuration. Create a credential and a VPN configuration with the Smallstep API.
  3. PAN-OS configuration. Configure the GlobalProtect portal and gateway for certificate authentication.

Client support

Windows

The GlobalProtect client reads certificates from the Windows certificate store. Windows has built-in support for hardware-bound keys. The Smallstep agent registers the TPM-bound key through a CNG key storage provider.

Important: on Windows, a hardware-attested credential goes into the machine certificate store. The agent puts the certificate in LocalMachine\My, not in the user store. The TPM key uses the machine scope of the Microsoft Platform Crypto Provider. Look for the certificate in the machine store (certlm.msc), not in the user store (certmgr.msc). The GlobalProtect client searches the machine store by default. Refer to 4. Configure the portal.

macOS

The GlobalProtect client uses the CryptoTokenKit identity that the Smallstep agent manages.

Linux: GlobalProtect client

The GlobalProtect client for Linux cannot use a hardware-attested key. The client accepts only a .p12 or .pfx file on the filesystem. The globalprotect import-certificate command imports that file. The client then keeps the key in software memory. Refer to the GlobalProtect documentation for Linux.

We examined the client binary for other key sources. It has none:

The only client certificate source that the binary accepts is a .p12 or .pfx file. The binary parses the file with PKCS12_parse(), and the key is a software key.

Note: the official GlobalProtect client for Linux cannot use attestation. A PKCS#12 file contains the private key. A TPM key cannot be exported to a file. Therefore, a Smallstep credential for this client must use a software key without attestation. The Smallstep API does not accept HARDWARE_ATTESTED with the PKCS#12 format. For the two Linux configuration options, refer to the Linux options section.

Linux: OpenConnect client