ASF Bugzilla – Attachment 26768 Details for
Bug 50928
[patch] JSSESocketFactory - wrong password in KeyManagerFactory.init
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix problem
JSSESocketFactory.patch (text/plain), 978 bytes, created by
Sebb
on 2011-03-14 09:53:51 UTC
(
hide
)
Description:
Patch to fix problem
Filename:
MIME Type:
Creator:
Sebb
Created:
2011-03-14 09:53:51 UTC
Size:
978 bytes
patch
obsolete
>Index: java/org/apache/tomcat/util/net/jsse/JSSESocketFactory.java >=================================================================== >--- java/org/apache/tomcat/util/net/jsse/JSSESocketFactory.java (revision 1080234) >+++ java/org/apache/tomcat/util/net/jsse/JSSESocketFactory.java (working copy) >@@ -474,7 +474,7 @@ > } catch(Exception e) { > if( e instanceof IOException ) > throw (IOException)e; >- throw new IOException(e.getMessage()); >+ throw new IOException(e.getMessage(), e); > } > } > >@@ -565,7 +565,11 @@ > } > > KeyManagerFactory kmf = KeyManagerFactory.getInstance(algorithm); >- kmf.init(ks, keystorePass.toCharArray()); >+ String keyPass = endpoint.getKeyPass(); >+ if (keyPass == null) { >+ keyPass = keystorePass; >+ } >+ kmf.init(ks, keyPass.toCharArray()); > > kms = kmf.getKeyManagers(); > if (keyAlias != null) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 50928
: 26768