Changeset ad4eef9


Ignore:
Timestamp:
Feb 19, 2018 10:14:50 PM (3 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
88c7abe
Parents:
935ba77d
Message:

i2ptunnel, I2CP, SAM: Change selfsigned cert cname to localhost (ticket #2160)

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/SSLClientUtil.java

    r935ba77d rad4eef9  
    103103        // make a random 48 character password (30 * 8 / 5)
    104104        String keyPassword = KeyStoreUtil.randomString();
    105         // and one for the cname
    106         String cname = name + ".i2ptunnel.i2p.net";
     105        String cname = "localhost";
    107106
    108107        String keyName = opts.getProperty(optPfx + PROP_KEY_ALIAS);
     
    117116        if (success) {
    118117            logAlways("Created self-signed certificate for " + cname + " in keystore: " + ks.getAbsolutePath() + "\n" +
    119                            "The certificate name was generated randomly, and is not associated with your " +
     118                           "The certificate was generated randomly, and is not associated with your " +
    120119                           "IP address, host name, router identity, or destination keys.");
    121120        } else {
  • apps/sam/java/src/net/i2p/sam/SSLUtil.java

    r935ba77d rad4eef9  
    8989        // make a random 48 character password (30 * 8 / 5)
    9090        String keyPassword = KeyStoreUtil.randomString();
    91         // and one for the cname
    92         String cname = name + ".sam.i2p.net";
     91        String cname = "localhost";
    9392
    9493        String keyName = opts.getProperty(PROP_KEY_ALIAS);
     
    103102        if (success) {
    104103            logAlways("Created self-signed certificate for " + cname + " in keystore: " + ks.getAbsolutePath() + "\n" +
    105                            "The certificate name was generated randomly, and is not associated with your " +
     104                           "The certificate was generated randomly, and is not associated with your " +
    106105                           "IP address, host name, router identity, or destination keys.");
    107106        } else {
  • apps/sam/java/src/net/i2p/sam/client/SSLUtil.java

    r935ba77d rad4eef9  
    9090        // make a random 48 character password (30 * 8 / 5)
    9191        String keyPassword = KeyStoreUtil.randomString();
    92         // and one for the cname
    93         String cname = name + ".sam.i2p.net";
     92        String cname = "localhost";
    9493
    9594        String keyName = opts.getProperty(PROP_KEY_ALIAS);
     
    104103        if (success) {
    105104            logAlways("Created self-signed certificate for " + cname + " in keystore: " + ks.getAbsolutePath() + "\n" +
    106                            "The certificate name was generated randomly, and is not associated with your " +
     105                           "The certificate was generated randomly, and is not associated with your " +
    107106                           "IP address, host name, router identity, or destination keys.");
    108107        } else {
  • router/java/src/net/i2p/router/client/SSLClientListenerRunner.java

    r935ba77d rad4eef9  
    8383        // make a random 48 character password (30 * 8 / 5)
    8484        String keyPassword = KeyStoreUtil.randomString();
    85         // and one for the cname
    86         String cname = KeyStoreUtil.randomString() + ".i2cp.i2p.net";
     85        String cname = "localhost";
    8786
    8887        boolean success = KeyStoreUtil.createKeys(ks, KEY_ALIAS, cname, "I2CP", keyPassword);
     
    9897        if (success) {
    9998            _log.logAlways(Log.INFO, "Created self-signed certificate for " + cname + " in keystore: " + ks.getAbsolutePath() + "\n" +
    100                            "The certificate name was generated randomly, and is not associated with your " +
     99                           "The certificate was generated randomly, and is not associated with your " +
    101100                           "IP address, host name, router identity, or destination keys.");
    102101        } else {
Note: See TracChangeset for help on using the changeset viewer.