Opened 3 years ago

Closed 3 years ago

#1866 closed defect (fixed)

SSL Console fail (keygen)

Reported by: zzz Owned by: zzz
Priority: minor Milestone: 0.9.28
Component: apps/console Version: 0.9.25
Keywords: Cc:
Parent Tickets:

Description

http://forum.i2p/viewtopic.php?t=12601

2016/10/14 23:23:09 | Failed to create console SSL keystore.
2016/10/14 23:23:09 | This is for the Sun/Oracle keytool, others may be incompatible.
2016/10/14 23:23:09 | If you create the keystore manually, you must add routerconsole.keystorePassword and routerconsole.keyPassword to /home/user/.i2p/router.config
2016/10/14 23:23:09 | Unable to create or access keystore for SSL: /home/user/.i2p/keystore/console.ks
2016/10/14 23:23:09 | Unable to bind routerconsole to any address on port null or SSL port 9898

Subtickets

Change History (3)

comment:1 Changed 3 years ago by zzz

  • Owner set to zzz
  • Status changed from new to accepted
ERROR [uter Console] net.i2p.crypto.KeyStoreUtil : Create keys error
     java.io.FileNotFoundException: /var/lib/i2p/i2p-config/keystore/console.ks (No such file or directory)
     at java.io.FileOutputStream.open(Native Method)
     at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
     at java.io.FileOutputStream.<init>(FileOutputStream.java:171)
     at net.i2p.util.SecureFileOutputStream.<init>(SecureFileOutputStream.java:41)
     at net.i2p.crypto.KeyStoreUtil.createKeyStore(KeyStoreUtil.java:166)
     at net.i2p.crypto.KeyStoreUtil.storePrivateKey(KeyStoreUtil.java:844)
     at net.i2p.crypto.KeyStoreUtil.createKeysAndCRL(KeyStoreUtil.java:600)
     at net.i2p.crypto.KeyStoreUtil.createKeysAndCRL(KeyStoreUtil.java:558)
     at net.i2p.crypto.KeyStoreUtil.createKeys(KeyStoreUtil.java:501)
     at net.i2p.crypto.KeyStoreUtil.createKeys(KeyStoreUtil.java:469)
     at net.i2p.router.web.RouterConsoleRunner.createKeyStore(RouterConsoleRunner.java:794)
     at net.i2p.router.web.RouterConsoleRunner.verifyKeyStore(RouterConsoleRunner.java:777)
     at net.i2p.router.web.RouterConsoleRunner.startConsole(RouterConsoleRunner.java:544)
     at net.i2p.router.web.RouterConsoleRunner.startup(RouterConsoleRunner.java:223)
     at net.i2p.router.startup.RouterAppManager.addAndStart(RouterAppManager.java:55)
     at net.i2p.router.startup.LoadClientAppsJob$RunApp.run(LoadClientAppsJob.java:282)
     at java.lang.Thread.run(Thread.java:745)
     at net.i2p.util.I2PThread.run(I2PThread.java:103)

comment:2 Changed 3 years ago by zzz

Not a keystore problem, just didn't make the directory.

Workaround is to mkdir /home/user/.i2p/keystore/ and restart

Last edited 3 years ago by zzz (previous) (diff)

comment:3 Changed 3 years ago by zzz

  • Resolution set to fixed
  • Status changed from accepted to closed
  • Summary changed from SSL Console fail in Ubuntu to SSL Console fail (keygen)
  • Version changed from 0.9.26 to 0.9.25

In 49c17c0af9b0ec564f37e4949222270fa92a674e 0.9.27-3

This was broken in 0.9.25 and was not limited to Debian/Ubuntu?.
When we switched to the new method of key generation, we omitted the mkdir step.

Note: See TracTickets for help on using tickets.