
|
If you were logged in you would be able to see more operations.
|
|
|
Openfire
Created: 04/08/06 01:11 PM
Updated: 01/19/08 07:11 PM
|
|
| Component/s: |
Admin Console
|
| Affects Version/s: |
2.6.0
|
| Fix Version/s: |
3.4.5
|
|
| Support Plan Customer Issue: |
No
|
| Resolution Date: |
01/19/08 07:11 PM
|
| Acceptance Test - Add?: |
No
|
|
The ssl settings page should deal with an empty or corrupt key store correctly. Right now, the page simply breaks.
|
|
Description
|
The ssl settings page should deal with an empty or corrupt key store correctly. Right now, the page simply breaks. |
Show » |
|
This patch should change the behavior of openfire to not crash when trying to create a csr.
Index: src/java/org/jivesoftware/util/CertificateManager.java
===================================================================
— src/java/org/jivesoftware/util/CertificateManager.java (revision 7909)
+++ src/java/org/jivesoftware/util/CertificateManager.java (working copy)
@@ -326,9 +326,15 @@
PublicKey pubKey = cert.getPublicKey();
String signatureAlgorithm = "DSA".equals(pubKey.getAlgorithm()) ? "SHA1withDSA" : "MD5withRSA";
+
+ PKCS10CertificationRequest csr = null;
+ try { + csr = new PKCS10CertificationRequest(signatureAlgorithm, xname, pubKey, null, privKey); + } catch (InvalidKeyException ive) { + sb.append("Cannot create certificate request."); + return sb.toString(); + }
ByteArrayOutputStream baos = new ByteArrayOutputStream();
DEROutputStream deros = new DEROutputStream(baos);