Using a single certificate based on aliases from Java Key Store
问题 I have a keystore which has multiple keys and certificates added to it I want to used a certificate based on the aliases from the key store and use it for SSL I tried to set the following System properties but nothing helped System.setProperty("javax.net.ssl.keyAlias", "abcd"); System.setProperty("javax.net.ssl.keyStoreAlias", "abcd"); It always uses the first certificate from the keystore instead of matching the key aliases 回答1: If you look at the Customization section of the JSSE Reference