Dynamically configure mutual tls in api for backend

Not applicable

I am configuring target urls dynamically using javascript. I want to configure the SSL information for the backend inside javascript. But I don't want the use of Http method in javascript. Is there anyway for the same?

1 2 157
2 REPLIES 2

I want to configure the SSL information for the backend inside javascript. ... Is there any way ...?

Ahhhh, yes.

The TLS configuration is part of the TargetEndpoint, of course.

The SSLInfo element accepts references to variables.

So you should be able to set the appropriate variables in your JS, along with setting the target.url, and then just reference those variables appropriately.

Here is the relevant documentation page.

Yes, I have done the same. Actually, I have prepared the general template which will be used for mutual TLS and non-mutual TLS both for our business requirement and automation. I didn't want to specify the SSL configuration in Target Endpoint. But, I am now specifying SSL config with variables. For code clean purpose I didn't want that to be present in a common configuration. can we make that here?