In order to use https between all spring cloud microservice instances we can generate a java keystore and configure each instance with it like this:
server.ssl.key-store=server.jks
server.ssl.key-store-password=<pw>
server.ssl.keyStoreType=jks
server.ssl.keyAlias=tomcat
server.ssl.key-password=<pw>
IIUC as far as setting up the ssl transport layer thats all we need to do? Is it OK / secure to use the same keystore in all instances of the same microservice type? For example the edge server could be using Ribbon to load balance between microserviceA - instance1
, microserviceA - instance2
, and microserviceA - instance3
, and these would all have the same keystore baked in.
If we also have a microserviceB, could it also use the same keystore without compromising security?
From a management / devOps point of view is this the simplest way to go?