how to manage two ssl certs in my spring app?

hey guys. i have mTLS in my app. i have jks with two certs in it. cert1 and cert2. my app calls two completely different apis/endpoints: api1/endpoint1 and uses cert1, and api2/endpoint2 and uses cert2. i was wondering do i need to make any changes in my rest template config? bc as i understand, i need to specify which cert to use for which api (or endpoint). but i was told that when mTLS is being initated and my app receives CertificateRequest, spring looks into the keystore, and just selects the needed key/cert that complies to the requirements in the received CertificateRequest. can smb help me out? how its done? do i need to config smth? or will spring take care of everything and i just need to let the 'automagic' happen? thx in advance.
1 Reply
JavaBot
JavaBot6mo ago
This post has been reserved for your question.
Hey @bambyzas! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here. 💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
Want results from more Discord servers?
Add your server