简体   繁体   中英

Multiple Certificates In Single Keystore & One Tomcat Instance

I'm working on a project in Java and having an issue authenticating to a merchant service for credit card transactions.

Currently I have a single tomcat instance that runs, and a single keystore that contains multiple certificates. We can get our web service to work with a single certificate connecting to the 3rd party merchant service. The issue is that we're trying to utilize a couple dozen certificates because the merchant service issues a unique cert per customer.

So the question I have: is it possible to configure tomcat in such a way that I can dynamically specify which certificate to use from the keystore on a per-connection basis?

Not sure if i understood your problem correctly. But one way of handling multiple certificates in a single keystore is to use alias in the Key/Trust Managers.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM