Commit ffb9d60a authored by André Berenguel's avatar André Berenguel Committed by Guus der Kinderen

Improve certificate signatures with SHA-2 functions

Conflicts:
	src/java/org/jivesoftware/openfire/keystore/IdentityStore.java
parent 93a49fe9
...@@ -389,12 +389,12 @@ public class IdentityStore extends CertificateStore ...@@ -389,12 +389,12 @@ public class IdentityStore extends CertificateStore
{ {
case "RSA": case "RSA":
keySize = JiveGlobals.getIntProperty( "cert.rsa.keysize", 2048 ); keySize = JiveGlobals.getIntProperty( "cert.rsa.keysize", 2048 );
signAlgorithm = "SHA1WITHRSAENCRYPTION"; signAlgorithm = "SHA256WITHRSAENCRYPTION";
break; break;
case "DSA": case "DSA":
keySize = JiveGlobals.getIntProperty( "cert.dsa.keysize", 1024 ); keySize = JiveGlobals.getIntProperty( "cert.dsa.keysize", 1024 );
signAlgorithm = "SHA1withDSA"; signAlgorithm = "SHA256withDSA";
break; break;
default: default:
......
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