ASF Bugzilla – Attachment 35359 Details for
Bug 61557
KeyStoreException make Tomcat could not startup successfully
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch for 9.0.x
bug-61557-tc9-v1.patch (text/plain), 1.05 KB, created by
Mark Thomas
on 2017-09-21 22:35:38 UTC
(
hide
)
Description:
Proposed patch for 9.0.x
Filename:
MIME Type:
Creator:
Mark Thomas
Created:
2017-09-21 22:35:38 UTC
Size:
1.05 KB
patch
obsolete
>Index: java/org/apache/tomcat/util/net/jsse/JSSEUtil.java >=================================================================== >--- java/org/apache/tomcat/util/net/jsse/JSSEUtil.java (revision 1809234) >+++ java/org/apache/tomcat/util/net/jsse/JSSEUtil.java (working copy) >@@ -241,7 +241,13 @@ > Key k = ks.getKey(keyAlias, keyPassArray); > if (k != null && "PKCS#8".equalsIgnoreCase(k.getFormat())) { > // Switch to in-memory key store >- ksUsed = KeyStore.getInstance("JKS"); >+ String provider = certificate.getCertificateKeystoreProvider(); >+ if (provider == null) { >+ ksUsed = KeyStore.getInstance(certificate.getCertificateKeystoreType()); >+ } else { >+ ksUsed = KeyStore.getInstance(certificate.getCertificateKeystoreType(), >+ provider); >+ } > ksUsed.load(null, null); > ksUsed.setKeyEntry(keyAlias, k, keyPassArray, ks.getCertificateChain(keyAlias)); > } >
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 61557
: 35359