What we're looking to do is be able to communicate with an existing HTTPS/TLS 1.2 service (outside of swarm) from our service deployed within swarm. The service running inside swarm has been migrated from running within a JBoss instance which handled the TLS 1.2 connection/cert. My goal would be not to modify the code within the service (currently using a standard spring RestTemplate) to specifically load the cert, but to externalize/proxy the TLS 1.2 connection within swarm somehow. What options would be available to do something like this? Any suggestions?
Mostly any posts I've looked up/found deal with applying TLS to the services within docker/swarm from an external source, or modifying the spring RestTemplate to load the cert for making external calls. We have a lot of services to migrate so I'm hoping there's a more generic way to approach this. Thanks