Skip to content

Commit

Permalink
Update self signing notes after debugging install
Browse files Browse the repository at this point in the history
  • Loading branch information
grooveadelic committed Aug 26, 2018
1 parent 57a5968 commit 8b99fa7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,24 @@ As part of the build step there will be a package signing step through which the
Private key generation:

```
keytool -genkeypair -dname "cn=John Doe, ou=I2P, o=Anonymous, c=EU" -keyalg rsa -keysize 4096 -alias [email protected] -keypass password -keystore ~/keystore.ks -storepass changeit -validity 180
keytool -genkeypair -dname "cn=[email protected], ou=I2P, o=Anonymous, c=EU" -keyalg rsa -keysize 4096 -alias [email protected] -keypass password -keystore ~/keystore.ks -storepass changeit -validity 180
```

* the only important values to keep as show are keyalg, keysize and storepass. Storepass because 'changeit' is the default somewhere in net.i2p.crypto.SU3File class (used for the zip -> su3 conversion)
* the only important values to keep as show are keyalg, keysize, storepass (because 'changeit' is the default somewhere in net.i2p.crypto.SU3File class. Class used for the zip to su3 conversion).
* CN value and the alias should be the same email address

Public keys export:

```
keytool -list -rfc -keystore ~/keystore.ks -alias [email protected] -storepass changeit > ~/keystore.pub.crt
keytool -list -rfc -keystore ~/keystore.ks -alias [email protected] -storepass changeit > ~/yourname_at_mail.i2p.crt
```
The filename at the end is important if you also want to deploy the plugin you have built on your own router. The file should be your email address with @ replaced with \_at\_ and you'll need to copy it to the ~/.i2p/certificates/plugin folder (which you'll also need to create as it doesn't exist by default)

Updates for `webapp/build.gradle` (under i2p -> plugin section):

* change author and signer values to your alias, [email protected]2p was used in the examples
* new entry for privKeyStore "/absolute/path/to/keystore.ks"
* new entry for pubKeyStore "/absolute/path/to/keystore.pub.crt"
* new entry for pubKeyStore "/absolute/path/to/yournanme\_at\_mail.i2p.crt"


### Building the I2P plugin
Expand Down

0 comments on commit 8b99fa7

Please sign in to comment.