Set default organization for self-signed certs

This commit is contained in:
zzz
2018-02-07 18:52:26 +00:00
parent 65484510c6
commit 96185d015a

View File

@@ -598,7 +598,7 @@ public final class KeyStoreUtil {
if (!sdir.mkdirs())
throw new IOException("Can't create directory " + dir);
}
Object[] rv = SelfSignedGenerator.generate(cname, ou, null, "I2P Anonymous Network", null, null, validDays, type);
Object[] rv = SelfSignedGenerator.generate(cname, ou, "I2P", "I2P Anonymous Network", null, null, validDays, type);
//PublicKey jpub = (PublicKey) rv[0];
PrivateKey jpriv = (PrivateKey) rv[1];
X509Certificate cert = (X509Certificate) rv[2];