Changeset 2007e88 for router


Ignore:
Timestamp:
Jan 20, 2016 9:05:26 PM (5 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
8243b69
Parents:
d82591a
Message:

Crypto: New utils to support private key import/export
Console: New /configfamily, /exportfamily

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/crypto/FamilyKeyCrypto.java

    rd82591a r2007e88  
    4848    private final SigningPublicKey _pubkey;
    4949
    50     private static final String PROP_KEYSTORE_PASSWORD = "netdb.family.keystorePassword";
     50    public static final String PROP_KEYSTORE_PASSWORD = "netdb.family.keystorePassword";
    5151    public static final String PROP_FAMILY_NAME = "netdb.family.name";
    52     private static final String PROP_KEY_PASSWORD = "netdb.family.keyPassword";
    53     private static final String CERT_SUFFIX = ".crt";
    54     private static final String KEYSTORE_PREFIX = "family-";
    55     private static final String KEYSTORE_SUFFIX = ".ks";
     52    public static final String PROP_KEY_PASSWORD = "netdb.family.keyPassword";
     53    public static final String CERT_SUFFIX = ".crt";
     54    public static final String KEYSTORE_PREFIX = "family-";
     55    public static final String KEYSTORE_SUFFIX = ".ks";
     56    public static final String CN_SUFFIX = ".family.i2p.net";
    5657    private static final int DEFAULT_KEY_VALID_DAYS = 3652;  // 10 years
    5758    // Note that we can't use RSA here, as the b64 sig would exceed the 255 char limit for a Mapping
     
    290291        String keyPassword = KeyStoreUtil.randomString();
    291292        // and one for the cname
    292         String cname = _fname + ".family.i2p.net";
     293        String cname = _fname + CN_SUFFIX;
    293294
    294295        boolean success = KeyStoreUtil.createKeys(ks, KeyStoreUtil.DEFAULT_KEYSTORE_PASSWORD, _fname, cname, "family",
Note: See TracChangeset for help on using the changeset viewer.