ASF Bugzilla – Attachment 32664 Details for
Bug 57833
NIO connector fails SSL handshake due to uppercase letters in keyAlias name
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for fixing NIO connector SSL handshake exception due to uppercase letters in keyAlias
NioEndpoint.java.patch (text/plain), 1.16 KB, created by
Santosh Giri Govind M
on 2015-04-20 08:24:59 UTC
(
hide
)
Description:
Patch for fixing NIO connector SSL handshake exception due to uppercase letters in keyAlias
Filename:
MIME Type:
Creator:
Santosh Giri Govind M
Created:
2015-04-20 08:24:59 UTC
Size:
1.16 KB
patch
obsolete
>Index: NioEndpoint.java >=================================================================== >--- NioEndpoint.java (revision 1674217) >+++ NioEndpoint.java (working copy) >@@ -33,6 +33,7 @@ > import java.nio.channels.SocketChannel; > import java.nio.channels.WritableByteChannel; > import java.util.Iterator; >+import java.util.Locale; > import java.util.Set; > import java.util.concurrent.ConcurrentLinkedQueue; > import java.util.concurrent.CountDownLatch; >@@ -512,7 +513,12 @@ > KeyManager[] result = new KeyManager[managers.length]; > for (int i=0; i<result.length; i++) { > if (managers[i] instanceof X509KeyManager && getKeyAlias()!=null) { >- result[i] = new NioX509KeyManager((X509KeyManager)managers[i],getKeyAlias()); >+ String alias = getKeyAlias(); >+ String keystoreType = getKeystoreType(); >+ if (null == keystoreType || "JKS".equals(keystoreType)) { >+ alias = alias.toLowerCase(Locale.ENGLISH); >+ } >+ result[i] = new NioX509KeyManager((X509KeyManager)managers[i],alias); > } else { > result[i] = managers[i]; > }
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 57833
: 32664