Skip to content

Commit

Permalink
Generate SHA256WithRSA certificate as default
Browse files Browse the repository at this point in the history
  • Loading branch information
FireBurn committed Sep 3, 2023
1 parent 298c676 commit dcdccd2
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 dcdccd2

Please sign in to comment.