---
sourceDocument: Australia ServiceNow AI Platform Capabilities
sourceDocumentLink: https://www.servicenow.com/docs/r/australia/servicenow-platform

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# MID Server IPKI reference

# MID Server IPKI reference {#ariaid-title1}

Release version: Australia  
Updated October 29, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 4 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of MID Server IPKI reference

This guide explains how to configure and manage MID Server IPKI (Instance-side Public Key Infrastructure) authentication in ServiceNow.
IPKI enables secure authentication of MID Servers to the instance using short-lived certificates and JWT tokens, enhancing security by automating certificate issuance, rotation, and validation.
Show full answer Show less  

## Configuration Parameters

* **mid.ipki.enabled:** Enables IPKI mode on the MID Server.
* **mid.ipki.registrationkey:** Used once for initial registration or manual reregistration of the MID Server.
* **mid.ipki.user:** The sysid of the user account the MID Server impersonates.
* **mid.ipki.rotationtriggerthreshold:** Determines how many days before certificate expiration the MID Server attempts rotation (default 15 days; certificates expire every 60 days).

## Instance-side Tables

Several instance tables support IPKI functionality:

* **syskmfcertificate:** Stores issued certificates.
* **snmidinfracertmap:** Maps MID Servers to certificates and tracks their status (active, superseded, revoked).
* **snmidregistrationkey:** Manages registration keys and their states.
* **eccagent:** Holds MID Server records and status information.

## JWT Claims for Authentication

MID Servers send signed JWT tokens with each request, containing specific claims that the instance validates to authenticate the MID Server:

* **iss:** Identifies the MID Server by the leaf certificate's given name (GN); must match the certificate.
* **sub:** The sysid of the user account the MID Server uses, resolved from the certificate UID.
* **aud:** The instance ID from the certificate surname (SN); must match the target instance.
* **exp:** Token expiration time; default TTL is 15 minutes.
* **nbf:** Time token becomes valid (usually issue time).
* **iat:** Token issue time.
* **nonce:** Random unique value per token.

The instance also validates the token header type, certificate chain, and signature.

## Common Log Messages and Troubleshooting

* **Migration errors:** Validate MID Server before migration; confirm IPKI is enabled if already migrated.
* **Missing migration payload:** Contact Customer Service with agent logs.
* **Migration failures:** Review error messages; escalate to support if unresolved.
* **Certificate rotation failures:** Check instance logs under `snmidinfra`, and force rotation if expiry is imminent.
* **Expired certificates:** Manual re-registration of the MID Server is required.
* **PolKit permissions on Linux:** Ensure the MID Server service user has PolKit authorization to manage systemd services to allow automatic restarts during IPKI operations.

## Practical Implications for ServiceNow Customers

Implementing IPKI authentication secures MID Server connections with automated certificate lifecycle management, reducing manual overhead and enhancing security posture. Customers must configure parameters correctly, monitor certificate rotation, and handle migration or rotation issues promptly using the guidance above. Additionally, Linux customers should verify service user permissions to avoid service disruptions during certificate updates.  
Learn about configuration parameters, keystore aliases, instance-side tables, and log messages for MID Server IPKI authentication.

## MID Server configuration parameters {#mid-server-ipki-reference__mid-server-ipki-reference-config}

{#mid-server-ipki-reference__table-mid-ipki-config__entry__2}

| Parameter | Description |
|-|-|
| mid.ipki.enabled | Set to `true` to put the MID Server into IPKI mode. |
| mid.ipki.registration_key | A valid registration key. Required only for the initial registration, or to manually reregister a MID Server. Cleared automatically after use. |
| mid.ipki.user | The sys_id of the MID Server user that this MID Server acts as. |
| mid.ipki.rotation_trigger_threshold | The number of days before a certificate expires at which the MID Server attempts to rotate it. IPKI certificates expire after 60 days. The default value is 15, so rotation starts 15 days before expiration. Enter a value from 8 to 59. |
[Table 1. Configuration parameters for IPKI]

{#mid-server-ipki-reference__table-mid-ipki-config}

## Instance-side tables {#mid-server-ipki-reference__mid-server-ipki-reference-instance}

{#mid-server-ipki-reference__table-mid-ipki-instance__entry__2}

| Table | Purpose |
|-|-|
| `sys_kmf_certificate` | Stores the issued certificates. |
| `sn_mid_infra_cert_map` | Maps a MID Server to its certificate and tracks whether that mapping is processing, active, superseded, or inactive. Controls revocation. |
| `sn_mid_registration_key` | Stores registration keys and their state: unused, consumed, or revoked. |
| `ecc_agent` | The MID Server record, including its status. |
[Table 2. Instance tables used by IPKI]

{#mid-server-ipki-reference__table-mid-ipki-instance}

## JWT claims {#mid-server-ipki-reference__mid-server-ipki-reference-claims}

MID Server sends a signed JSON Web Token (JWT) to its instance as a bearer token with
each request, so that the instance can authenticate the MID Server. The payload of the token contains the JWT claims used by IPKI.
{#mid-server-ipki-reference__table-mid-ipki-claims__entry__2}

| Claim | Description |
|-|-|
| `iss` | The MID Server that sends the request to the instance. The MID Server is identified through the given name (GN) attribute of the leaf certificate in the token header. The instance requires this claim and rejects the token if the value does not match the GN of the certificate. |
| `sub` | The sys_id of the user account that the MID Server uses to connect to the instance. The MID Server resolves it from the UID attribute of its certificate. The instance uses this claim to find the user. |
| `aud` | The target instance. The claim contains the instance ID, which the MID Server takes from the surname (SN) attribute of its certificate. The instance rejects the token if the value does not match the instance ID. |
| `exp` | The time at which the token expires. It is the issue time plus the value of the mid.jwt.token_ttl parameter. The default value is 15 minutes, with a minimum of 60 seconds and a maximum of 1 hour. The instance requires this claim and allows 10 seconds of clock skew. |
| `nbf` | The time at which the token becomes valid. The MID Server sets it to the issue time, so the token is valid as soon as it is created. The instance requires this claim and allows 10 seconds of clock skew. |
| `iat` | The time at which the token was issued. |
| `nonce` | A random value that makes each token unique. The MID Server adds it to every token. |
| `jti` | A unique ID for the token. The MID Server does not set this claim. |
[Table 3. JWT claims used by IPKI]

{#mid-server-ipki-reference__table-mid-ipki-claims}

The instance also checks that the token header type is `kaa+jwt`. The header must contain the certificate chain. The signature must verify with the public key of the leaf certificate.

## Log messages and issues {#mid-server-ipki-reference__mid-server-ipki-reference-messages}

{#mid-server-ipki-reference__table-mid-ipki-messages__entry__3}

| Message or issue | Cause | What to do |
|-|-|-|
| `IPKI migration rejected: MID server is not validated` | The MID Server isn't validated. | Validate the MID Server, and then migrate it again. |
| `IPKI migration rejected: MID server is already IPKI enabled` | The MID Server already uses IPKI. | The MID Server already uses IPKI. To confirm, check that the mid.ipki.enabled parameter is set to true in the MID Server configuration parameters. |
| `Missing parameter: migration_key_payload_encrypted` | The instance didn't send the migration payload to the MID Server. | Contact Customer Service and Support, and include the agent log. |
| `Failed to complete IPKI migration` or `Unexpected error during IPKI migration` | The migration failed after the MID Server accepted the request. The message includes the reason. | Use the reason in the message to find the cause. If it doesn't help, contact Customer Service and Support with the message text. |
| `IPKI certificate rotation failed for alias DefaultSecurityKeyPairHandle` | The MID Server couldn't get a new certificate. | Check the instance logs for entries from the `sn_mid_infra` source to find more details about the failure. |
| The `Mid-CertificateRotationRequired` issue | Rotation keeps failing, and the certificate expires in 7 days or less. | To fix the problem immediately, force rotation from the instance. The MID Server also retries rotation automatically every hour. If the instance returned an error code, check the instance logs for entries from the `sn_mid_infra` source for more details. |
| `Automatic rotation is not possible; manual re-registration is required` | The certificate has expired. | Reregister the MID Server. For the steps, see [Reregister MID Servers to restore IPKI authentication](https://www.servicenow.com/docs/2SQz0qG3sxI5BZ8AT4cI2g "Generate a registration key and use it to get a new IPKI certificate for an existing MID Server."). |
| `MID service user lacks PolKit permission to manage the systemd service` | The user that runs the MID Server service isn't authorized to manage the system service. The MID Server might not restart after an upgrade or after certificate rotation. | Create a PolKit rule for the MID Server service user. |
[Table 4. IPKI log messages and issues]

{#mid-server-ipki-reference__table-mid-ipki-messages}

## PolKit rules for the MID Server on Linux {#mid-server-ipki-reference__section_gmg_sqn_clc}

During IPKI operations, the MID Server restarts automatically. On Linux, if the MID Server service runs as a user other than root, that user might need PolKit authorization to manage the service. To know about PolKit permission warning and resolution, see [KB2934327](https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB2934327).
**Related concepts**   

* [MID Server authentication methods comparison](https://www.servicenow.com/docs/z5ydkOwSzufzHuISkzAUeg "The MID Server can authenticate to your instance using basic authentication, mTLS, or IPKI methods. The methods differ in what the MID Server presents, who issues and manages the certificate, and how access is revoked.")

