Question
5
Replies
640
Views
Genworth Financial
Posted: August 28, 2018
Last activity: September 5, 2018
Closed
Dynamically refer TrustStore/KeyStore in a connect Rest rule
Hi,
For some of the services in my application, we are using SSL and a trust store but that changes for different environments. Is there any way we can achieve this?
Solutions Tried:
1) Referring my DCR data page property and creating multiple TrustStores with different names
The trust store field on the ConnectRest rule only takes the Trust Store rule name.
2) Tried to send it in a param.
Same issue
***Moderator Edit-Vidyaranjan: Updated Title as per comment***
Hi Goutham,
The use case is not clear and what exactly are you looking for. A connect rest rule only connects to a single service so why would you need multiple trust stores.
If what I understand is correct from the above post, you should be better off by adding different certificates to the truststore defined at application server level. Then, depending on the service requirements, the corresponding trust store will be picked automatically.