forked from I2P_Developers/i2p.i2p
Crypto: Create keystore directory when making SSL keys (ticket #1866)
When we switched to new way of making keys in 0.9.25, we omitted the mkdir step, which broke it.
This commit is contained in:
@ -591,6 +591,12 @@ public final class KeyStoreUtil {
|
||||
public static Object[] createKeysAndCRL(File ks, String ksPW, String alias, String cname, String ou,
|
||||
int validDays, SigType type, String keyPW)
|
||||
throws GeneralSecurityException, IOException {
|
||||
File dir = ks.getParentFile();
|
||||
if (dir != null && !dir.exists()) {
|
||||
File sdir = new SecureDirectory(dir.getAbsolutePath());
|
||||
if (!sdir.mkdirs())
|
||||
throw new IOException("Can't create directory " + dir);
|
||||
}
|
||||
Object[] rv = SelfSignedGenerator.generate(cname, ou, "XX", "I2P Anonymous Network", "XX", "XX", validDays, type);
|
||||
PublicKey jpub = (PublicKey) rv[0];
|
||||
PrivateKey jpriv = (PrivateKey) rv[1];
|
||||
|
15
history.txt
15
history.txt
@ -1,8 +1,23 @@
|
||||
2016-10-23 zzz
|
||||
* Crypto: Create keystore directory when making SSL keys (ticket #1866)
|
||||
|
||||
2016-10-22 zzz
|
||||
* Build: Fix jbigi build in Arch Linux and others for Java 8 (ticket #1863)
|
||||
* Console:
|
||||
- New Korean translation
|
||||
- New Chinese (Taiwan) translations for susidns, susimail, debian
|
||||
- New initial news translations: Czech, Greek
|
||||
* Jetty 8.1.21.v20160908
|
||||
|
||||
2016-10-21 zzz
|
||||
* Console:
|
||||
- New Galician translation
|
||||
- Remove calls to deprecated two-arg setStatus()
|
||||
* Crypto: Actually use a random nonzero byte in ElGamal
|
||||
* Data: Cache serialized leasesets on floodfills
|
||||
* NetDB: Disallow RSA for RI or LS
|
||||
* Tomcat 6.0.47
|
||||
* Utils: Add MTU to command line utils
|
||||
* Wrapper 3.5.30
|
||||
|
||||
2016-10-20 zzz
|
||||
|
@ -18,7 +18,7 @@ public class RouterVersion {
|
||||
/** deprecated */
|
||||
public final static String ID = "Monotone";
|
||||
public final static String VERSION = CoreVersion.VERSION;
|
||||
public final static long BUILD = 2;
|
||||
public final static long BUILD = 3;
|
||||
|
||||
/** for example "-test" */
|
||||
public final static String EXTRA = "";
|
||||
|
Reference in New Issue
Block a user