Raghavender Reddy
Raghavender Reddy

Reputation: 180

How to Consume a REST API with HTTPS?

I want to consume a rest api with HTTPS protocol, a certificate with .p12 is shared with me , I am stuck I don't know how to consume them can any one help me with this please, If i try to call the end point url's an error is throw stating no valid certificate is found.

Upvotes: 0

Views: 1286

Answers (2)

Harish Kumar
Harish Kumar

Reputation: 11

use spring security provider connector in mule and configure it.Please follow the following sample code.

and configure http inbound listener with jks file.

Upvotes: 1

Senthil c
Senthil c

Reputation: 341

I believe the below code would help!! note the "insecure" attribute being set to "true", which would resolve the certificate trust issue. Hope it helps!! <tls:trust-store **insecure="true"** path="keystore.jks" type="jks" password="testing"/>

Upvotes: 0

Related Questions