Emmanuel Lecharny created DIRSERVER-2262: --------------------------------------------
Summary: The LdapServer.loadkeyStore() method do the work twice if there is no KeyStore defined Key: DIRSERVER-2262 URL: https://issues.apache.org/jira/browse/DIRSERVER-2262 Project: Directory ApacheDS Issue Type: Improvement Affects Versions: 2.0.0.AM25 Reporter: Emmanuel Lecharny Fix For: 2.0.0.AM26 When initializing the server, we call the {{loadkeyStore}} method to load the KeyStore. If there is none configured, we create a internal one that will be used to manage SSL/TLS communication. The thing is that before initializing the {{KeyManagerFactory}}, we check the KeyStore, which generates a private key and a certificate. the following methods are called : o {{CoreKeyStoreSpi.engineLoad()}} o {{CoreKeyStoreSpi.engineAliases()}} o {{CoreKeyStoreSpi.engineIsKeyEntry()}} o {{CoreKeyStoreSpi.engineGetCertificateChain()}} o {{CoreKeyStoreSpi.engineGetKey()}} then : o {{CoreKeyStoreSpi.engineAliases()}} o {{CoreKeyStoreSpi.engineIsKeyEntry()}} o {{CoreKeyStoreSpi.engineGetKey()}} o {{CoreKeyStoreSpi.engineGetCertificateChain()}} o {{CoreKeyStoreSpi.getCertificate()}} We also fetch the admin user 4 times in the process... That could be simplified. -- This message was sent by Atlassian JIRA (v7.6.3#76005)