Configure SSL encryption for your Kafka consumers by generating an instance-signed certificate and configuring your Kafka client with SSL to securely connect to the managed Hermes cluster and consume data export results.
Before you begin
Role required: sn_uxa_data_export.user assigned to the user or integration account that calls the API.
Figure 1. Prerequisites
Verify network connectivity to Hermes and confirm you have a Kafka consumer environment that can connect to your managed Hermes cluster, with required network ports (4100–4150 and 4200–4250) open.
Procedure
Confirm that your Kafka consumer environment can reach the Hermes bootstrap servers on the required ports:
Hermes uses two Kafka clusters for high availability:
Cluster
Bootstrap Servers
Cluster 1
<instance>.service-now.com:4100,4101,4102,4103
Cluster 2
<instance>.service-now.com:4200,4201,4202,4203
Ask your network administrator to confirm that your firewall rules permit outbound connections to both port ranges (4100–4150 and 4200–4250).
Generate the instance certificate
Open your ServiceNow® instance in a browser.
Use the search box or navigator to access > > All > Certificate Generator > Instance PKI Certificate Generator.
The Instance PKI Certificate Generator page opens.
Enter the following:
In the Keystore password field, enter a strong password that will be used for the certificates in your Kafka consumer.
Select Generate.
The system generates a Keystore and Truststore file pair for your instance. Certificate generation may take a moment.
Download the certificate files.
After generation completes, the system provides download links for two files:
Keystore file: Contains your instance's private key and certificate. Used to authenticate with Hermes.
Truststore file: Contains the CA certificates needed to validate Hermes server certificate.
Download both files and save them to a secure location on your local machine.
Copy the certificate files to your Kafka consumer environment that will connect to Hermes.
Start both consumer processes, and they will begin receiving batches as the export job produces results.
Result
Your Kafka consumer environment is now securely connected to the managed Hermes cluster. You can submit data export requests and consume results from the Kafka topic using your configured consumers. Use a dedicated integration user for automated exports and grant it only the
sn_uxa_data_export.user role and de-duplicate using the Kafka offset.
Note:
Schedule recurring exports (e.g., daily) so each run stays within the 60-request-per-hour and 100 GB-per-month limits.
What to do next
Reassembling and de-duplicating results: Since batch delivery order is not
guaranteed and duplicate batches may occasionally be delivered.
Reassemble: Sort batches by batch_num to reconstruct the full result set.
Track completion: When batch_num equals total, all batches for the job have been produced.
De-duplicate: If you receive the same batch twice, use batch_num together with the Kafka offset to remove duplicates.
Consume within retention window: Results are retained on the topic for 36 hours. Consume all batches before they expire.
Note:
Each instance has its own dedicated Kafka topic for result delivery. The SSL certificate used to access the topic is scoped to your instance's topics only. Exports are bound to your customer account: data from one account is
never accessible from another account's instance.