MID Server IPKI authentication

concept brazil Updated Oct 29, 2026 7 min read mid-server-ipki-authentication.md
Raw file servicenow.com

Instance PKI (IPKI) lets a MID Server authenticate to its instance using a JSON Web Token (JWT) signed by an instance-issued certificate. Use IPKI when you want to authenticate MID Servers with certificates that the instance issues.

How IPKI authentication works

The MID Server creates a JWT and signs it with the private key associated with its certificate. It then sends that JWT as a bearer token in the Authorization header of an HTTPS request. The certificate's role is to back the JWT's signature and identify the MID Server.

When the instance receives a request, it reads the JWT as a bearer token. It resolves the acting user from the token's sub claim rather than from the certificate. It then evaluates an IPKI authorization policy for that user through the sn_ipki_auth policy API. A DBListener tracks certificate activation and revocation continuously, so a revoked MID Server is rejected even if its signature is still valid.

Certificate rotation

The MID Server rotates its IPKI certificate automatically, starting 15 days before the certificate expires. After it receives the new certificate, the MID Server restarts.

Force rotation

By default, MID Servers that use IPKI rotate certificates automatically within the rotation window. To rotate a certificate early, use the force rotation feature in the MID Admin workspace.

Known limitations

If the IPKI certificate expires, the MID Server can't authenticate to the instance. As a result, it can't rotate the certificate automatically. To restore authentication, fix the certificate or reregister the MID Server. For the steps, see Reregister MID Servers to restore IPKI authentication.

If automatic rotation fails, the MID Server raises the Mid-CertificateRotationRequired issue when the certificate has 7 days or less before it expires. Before the certificate expires, force a rotation or reregister the MID Server. For the messages that the MID Server logs, see MID Server IPKI reference.

Next steps

To compare IPKI with basic authentication and mTLS, see MID Server authentication methods comparison. To provision a new MID Server with IPKI, see Set up a MID Server to use IPKI authentication. To move an existing MID Server from basic authentication, see Migrate MID Servers to IPKI. To restore authentication for a MID Server whose certificate has expired or been revoked, see Reregister MID Servers to restore IPKI authentication. To move a MID Server back to basic authentication, see Revert MID Servers from IPKI to basic authentication.

Parent Topic:Securing and encrypting MID Server data

Related topics

MID Server certificate check policies

Encrypt or decrypt MID Server configuration file values

MID Server configuration file security

MID Server authentication methods comparison

MID Server authentication credentials and SOAP requests

MID Server unified key store

Enable MID Server mutual authentication

MID Server Azure Key Vault integration

MID Server command audit log

Rekey a MID Server

Add SSL certificates for the MID Server

MID Server SSH cryptographic algorithms

Attach a script file to a file synchronized MID Server

MID Server FIPS Enforced Mode

MID Server Governance

Keywords iPKIMID Server authenticationDefaultSecurityKeyPairHandle
Search documentation
Search document titles and file paths on the brazil branch