Skip to content

Commit

Permalink
Generate SHA256WithRSA certificate as default (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
FireBurn authored Sep 4, 2023
1 parent 298c676 commit e7fa03e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ public boolean isRunning() {
static {
final String password="keypassword";
try {
CertAndKeyGen keyGen=new CertAndKeyGen("RSA","SHA1WithRSA",null);
CertAndKeyGen keyGen=new CertAndKeyGen("RSA","SHA256WithRSA",null);
keyGen.generate(2048);
X509Certificate[] chain=new X509Certificate[1];
chain[0]=keyGen.getSelfCertificate(new X500Name("CN=localhost"), (long)1*3600);
Expand Down

0 comments on commit e7fa03e

Please sign in to comment.