We have a requirement to integrate with an External Rest API via Rest API Connector. External API uses Authentication Certificate and expecting cert to be passed in header with name X-CLIENT-CERT
The certificate has been uploaded through keystore and is included in the Rest connector. We are assuming this approach is inline to the approach the client is expecting. But we aren’t seeing the expected results.
Is this the approach that needs to be implemented? Any other steps we are missing?
To integrate with an external REST API using a REST API Connector and pass the authentication certificate in the header, you need to follow these steps:
Import the certificate into a Pega Keystore instance.
Configure the REST Connector to use the Keystore instance for authentication.
Register the custom header with the certificate in the header processor.
To register the custom header, you can use the following example code in an activity:
Make sure to replace “your_certificate_value” with the actual certificate value. After completing these steps, the REST Connector should pass the certificate in the header as expected.
As a Support Center moderator, I reviewed the answer and references for accuracy