Changeset 80966d60


Ignore:
Timestamp:
Oct 23, 2016 4:38:26 PM (4 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
d2f7b65
Parents:
85223303
Message:

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.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/crypto/KeyStoreUtil.java

    r85223303 r80966d60  
    592592                                            int validDays, SigType type, String keyPW)
    593593                                                throws GeneralSecurityException, IOException {
     594        File dir = ks.getParentFile();
     595        if (dir != null && !dir.exists()) {
     596            File sdir = new SecureDirectory(dir.getAbsolutePath());
     597            if (!sdir.mkdirs())
     598                throw new IOException("Can't create directory " + dir);
     599        }
    594600        Object[] rv = SelfSignedGenerator.generate(cname, ou, "XX", "I2P Anonymous Network", "XX", "XX", validDays, type);
    595601        PublicKey jpub = (PublicKey) rv[0];
  • history.txt

    r85223303 r80966d60  
     12016-10-23 zzz
     2 * Crypto: Create keystore directory when making SSL keys (ticket #1866)
     3
     42016-10-22 zzz
     5 * Build: Fix jbigi build in Arch Linux and others for Java 8 (ticket #1863)
     6 * Console:
     7   - New Korean translation
     8   - New Chinese (Taiwan) translations for susidns, susimail, debian
     9   - New initial news translations: Czech, Greek
     10 * Jetty 8.1.21.v20160908
     11
    1122016-10-21 zzz
     13 * Console:
     14   - New Galician translation
     15   - Remove calls to deprecated two-arg setStatus()
    216 * Crypto: Actually use a random nonzero byte in ElGamal
    317 * Data: Cache serialized leasesets on floodfills
    418 * NetDB: Disallow RSA for RI or LS
    519 * Tomcat 6.0.47
     20 * Utils: Add MTU to command line utils
    621 * Wrapper 3.5.30
    722
  • router/java/src/net/i2p/router/RouterVersion.java

    r85223303 r80966d60  
    1919    public final static String ID = "Monotone";
    2020    public final static String VERSION = CoreVersion.VERSION;
    21     public final static long BUILD = 2;
     21    public final static long BUILD = 3;
    2222
    2323    /** for example "-test" */
Note: See TracChangeset for help on using the changeset viewer.