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.