Commit 45cb0091 authored by Guus der Kinderen's avatar Guus der Kinderen

Merge pull request #527 from guusdk/aberenguel-certificate-issues

Improve certificate signatures with SHA-2 functions
parents 93a49fe9 ffb9d60a
...@@ -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