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


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946246#3946246

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3946246


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to