how to use two separate SSL certs when my app calls different endpoints?

hey guys. i have a spring application. there are two endpoints that are being called in it (for example
endpoint1
and
endpoint2
). and also there are two security certificates (for example
cretificate1
for
endpoint1
and
certificate2
for
endpoint2
). i have a problem. how to switch between certificates? because once the application is running, the JKS is already loaded. how to approach this issue? thanks in advance.
Was this page helpful?