I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 288a6b06 authored by zzz's avatar zzz
Browse files

SSL Wiz: Use RSA if EC not available

parent df7c1c61
No related branches found
No related tags found
No related merge requests found
......@@ -199,8 +199,11 @@ input.default { width: 1px; height: 1px; visibility: hidden; }
ks.delete();
}
try {
boolean haveEC = net.i2p.crypto.SigType.ECDSA_SHA256_P256.isAvailable();
String alg = haveEC ? "EC" : "RSA";
int sz = haveEC ? 256 : 2048;
Object[] rv = net.i2p.crypto.KeyStoreUtil.createKeysAndCRL(ks, kspw, "eepsite", name, altNames, b32,
3652, "EC", 256, newpw);
3652, alg, sz, newpw);
msgs.append("Created selfsigned cert\n");
// save cert
java.security.cert.X509Certificate cert = (java.security.cert.X509Certificate) rv[2];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment