This content has been marked as final.
Show 1 reply
-
1. Re: problem when SSL key password different than keystore pa
starksm64 May 24, 2006 1:53 PM (in response to mazz)The logic for handling the key specific password is wrong. It is overwriting a non-empty keyPassword with the keyStorePassword:
431 private KeyStore getKeyStore(URL storeURL) throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException 432 { 433 KeyStore keyStore = KeyStore.getInstance(keyStoreType); 434 if(storeURL == null) 435 { 436 throw new IOException("Can not create SSL Server Socket Factory due to the url to the key store not being set."); 437 } 438 InputStream is = storeURL.openStream(); 439 keyStore.load(is, keyStorePassword); 440 441 // if key password not set, just try the key store password 442 if(keyPassword == null || keyPassword.length > 0) 443 { 444 keyPassword = keyStorePassword; 445 } 446 447 return keyStore; 448 449 }
http://jira.jboss.com/jira/browse/JBREM-488