Has anyone tried using a keystore where the key password is different than the keystore password?
I used keytool to create my keystore where the -storepass and -keypass are two different values. I ensure I set the proper attributes on the SSLSocketBuilder (setKeyPassword, setKeyStorePassword). I get this exception: | java.security.UnrecoverableKeyException: Cannot recover key | at sun.security.provider.KeyProtector.recover(KeyProtector.java:301) | at sun.security.provider.JavaKeyStore.engineGetKey(JavaKeyStore.java:103) | at java.security.KeyStore.getKey(KeyStore.java:289) | at com.sun.net.ssl.internal.ssl.X509KeyManagerImpl.<init>(DashoA12275) | at com.sun.net.ssl.internal.ssl.KeyManagerFactoryImpl.engineInit(DashoA12275) | at javax.net.ssl.KeyManagerFactory.init(DashoA12275) | at org.jboss.remoting.security.SSLSocketBuilder.getKeyManagerFactory(SSLSocketBuilder.java:425) | at org.jboss.remoting.security.SSLSocketBuilder.createCustomServerSocketFactory(SSLSocketBuilder.java:347) | at org.jboss.remoting.security.SSLSocketBuilder.createSSLServerSocketFactory(SSLSocketBuilder.java:321) | at org.jboss.remoting.security.SSLServerSocketFactoryService.start(SSLServerSocketFactoryService.java:74) | If I regenerate the keystore using keytool with the two passwords the same and I setup the Builder with the same two passwords, it all works. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3945976#3945976 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945976 ------------------------------------------------------- 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 JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user