---
sourceDocument: Brazil ServiceNow AI Platform Capabilities
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/servicenow-platform

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# MID Server IPKI reference

# MID Server IPKI reference {#ariaid-title1}

Release version: Brazil  
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 provides essential information about configuring and managing MID Server IPKI (Instance Public Key Infrastructure) authentication in ServiceNow.
IPKI enables secure, certificate-based authentication between the MID Server and the ServiceNow instance, improving security and automating certificate lifecycle management.
Show full answer Show less  

## Key Configuration Parameters

* **mid.ipki.enabled**: Enables IPKI mode on the MID Server (set to true).
* **mid.ipki.registrationkey**: A required registration key for initial or manual MID Server registration, automatically cleared after use.
* **mid.ipki.user**: Specifies the sysid of the MID Server user account used for instance authentication.
* **mid.ipki.rotationtriggerthreshold**: Defines how many days before certificate expiration (default 15 days) the MID Server attempts certificate rotation. Certificates expire every 60 days.

## Instance-Side Tables Used

* **syskmfcertificate**: Stores issued certificates.
* **snmidinfracertmap**: Maps MID Servers to their certificates and tracks certificate state, including revocation status.
* **snmidregistrationkey**: Manages registration keys and their usage state (unused, consumed, revoked).
* **eccagent**: Contains MID Server records and status.

## JWT Claims for Authentication

The MID Server uses signed JSON Web Tokens (JWTs) to authenticate to the instance. Important JWT claims include:

* **iss**: Identifies the MID Server by the certificate's given name; must match the token header.
* **sub**: The MID Server's user sysid, resolved from the certificate.
* **aud**: The target instance ID from the certificate's surname attribute, ensuring the token is for the correct instance.
* **exp** , **nbf** , **iat**: Token expiration, start of validity, and issue time, with default 15-minute TTL and allowed clock skew of 10 seconds.
* **nonce**: A random value to ensure token uniqueness.

The instance also verifies that the token header type is `kaa+jwt`, includes the certificate chain, and confirms the signature using the leaf certificate's public key.

## Common Log Messages and Troubleshooting

* **IPKI migration rejected: MID server is not validated**: Validate the MID Server before migrating.
* **IPKI migration rejected: MID server is already IPKI enabled**: Confirm that IPKI is already enabled by checking the relevant parameter.
* **Missing parameter: migrationkeypayloadencrypted**: Indicates the instance did not send the migration payload; contact ServiceNow Support with agent logs.
* **Failed IPKI migration or unexpected errors**: Review the error message; if unresolved, contact Support with details.
* **IPKI certificate rotation failed**: Check instance logs for snmidinfra errors; force rotation if certificate expiry is imminent.
* **Automatic rotation not possible; manual re-registration required**: Occurs if the certificate expired; follow re-registration procedures.
* **MID service user lacks PolKit permission**: On Linux, if MID Server runs as non-root, ensure the service user is authorized via PolKit rules to manage the MID Server service to allow automatic restarts.

## PolKit Considerations on Linux

During IPKI operations, the MID Server restarts automatically. If the MID Server service runs as a non-root user on Linux, PolKit permissions must be configured to authorize service management. Without proper PolKit rules, the MID Server may fail to restart after upgrades or certificate rotation.

## Practical Benefits for ServiceNow Customers

* Enables secure, automated certificate-based authentication for MID Servers, reducing manual security management.
* Automates certificate rotation to maintain continuous secure communication without manual intervention.
* Provides detailed logs and error messages to streamline troubleshooting and maintenance.
* Supports compliance and security best practices by enforcing strict token validation and certificate management.  
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://servicenow-prod.fluidtopics.net/DpEsxsyfl1SOS_c2nOJjXg "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://servicenow-prod.fluidtopics.net/PEMk5upii5aIhj3S49hSaQ "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.")

