-
Notifications
You must be signed in to change notification settings - Fork 26
Plugin
MuWire is available as a plugin to the Java I2P router. Building the plugin is disabled by default because it is more complicated than building the desktop application.
Follow these steps:
I. Build I2P
- Clone the I2P source code from I2P Github
- Build the source with
ant clean pkg
- Create a directory under the MuWire source tree called
i2pjars
and copy all .jar files generated by the previous step there. You will find them inpkg-temp/lib
II. Generate plugin signing key
The plugin must be signed for the router to load it, and the signing certificate must be deployed:
- Generate a certificate by invoking the following command from the root of the MuWire source tree:
java -cp i2pjars/i2p.jar net.i2p.crypto.SU3File keygen <fileName.crt> keystore.ks <[email protected]>
The generator will ask you for a password for the newly generated certificate, and it will be stored in fileName.crt.
-
Copy the
keystore.ks
file generated in the previous step to$HOME/.i2p-plugin-keys/plugin-su3-keystore.ks
. -
Rename the certificate file the following way - if you gave
[email protected]
as email address in step 1 above, the certificate file should be calledyour_at_mail.com.crt
. -
Copy the renamed certificate file to the installation of I2P, inside the
certificates/plugin
directory.
III. Build the plugin
Now you're ready to build the plugin.
- Un-comment the
webui
andplug
sub-projects in thesettings.gradle
file. - Edit
gradle.properties
to change the signer to the email address you generated the certificate for. - Run
./gradlew -PbuildNumber=<some integer> assemble
where "some integer" will be the minor build number. - Just before it finishes, the build script will ask you for the password to unlock the certificate
- If all goes well, the plugin will be in
plug/build/MuWire.su3
IV. Install the plugin
- Start the I2P router
- Go to the plugin installation page, that is usually http://127.0.0.1:7657/configplugins
- In the "Installation From File" section select the MuWire.su3 generated by the build system
- Click "Install Plugin From File"
- MuWire should appear on the left side of the console. It is also reachable via http://127.0.0.1:7657/MuWire