Commit a09d8e1c authored by Daryl Herzmann's avatar Daryl Herzmann Committed by akrherz

"Supplied key (null) is not a RSAPrivateKey instance" error in the Server...

"Supplied key (null) is not a RSAPrivateKey instance" error in the Server Settings / Server Certificates screen, fixes #OF-498


git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@12905 b35dd754-fafc-0310-a699-88a17e54d16e
parent c86da893
......@@ -348,7 +348,9 @@
if (isSigningPending) {
// Generate new signing request for certificate
PrivateKey privKey = (PrivateKey) keyStore.getKey(a, SSLConfig.getKeyPassword().toCharArray());
signingRequests.put(a, CertificateManager.createSigningRequest(c, privKey));
if (privKey != null) {
signingRequests.put(a, CertificateManager.createSigningRequest(c, privKey));
}
}
%>
<tr valign="top">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment