mirror of
https://github.com/PurpleI2P/i2pd_docs_en
synced 2025-03-12 21:31:07 +00:00
Merge pull request #69 from freeacetone/master
remove websockets & add family keys migration
This commit is contained in:
commit
ecaafde7c2
@ -165,7 +165,7 @@ i2cp.address | The address to listen on or an abstract
|
||||
i2cp.port | Port of I2CP server. Usually 7654. Ignored for Andorid
|
||||
i2cp.enabled | If I2CP is enabled. false by default. Other services don't require I2CP
|
||||
i2cp.singlethread | If false every I2CP session runs in own thread. true by default
|
||||
|
||||
|
||||
### I2PControl interface
|
||||
|
||||
Option | Description
|
||||
@ -229,14 +229,6 @@ trust.family | Make direct I2P connections only to rou
|
||||
trust.routers | Make direct I2P connections only to routers specified here. Comma separated list of base64 identities.
|
||||
trust.hidden | Should we hide our router from other routers? false by default
|
||||
|
||||
### Websocket server
|
||||
|
||||
Option | Description
|
||||
-------------------------------------- | --------------------------------------
|
||||
websockets.enabled | Enable websocket server. Disabled by default
|
||||
websockets.address | Address to bind websocket server on. 127.0.0.1 by default
|
||||
websockets.port | Port to bind websocket server on. 7666 by default
|
||||
|
||||
### Exploratory tunnels
|
||||
|
||||
Option | Description
|
||||
|
@ -34,5 +34,59 @@ Publish your family
|
||||
Run i2pd with the parameters 'family=<your-family-name>', and make sure you have <your-family-name>.key and <your-family-name>.crt in your 'family' folder.
|
||||
If everything is set properly, you router.info will contain two new fields: 'family' and 'family.sig'.
|
||||
If not, your router will complain on startup with log messages starting with "Family:" prefix and severity 'warn' or 'error'.
|
||||
|
||||
Export to Java-I2P from i2pd
|
||||
------------------
|
||||
1. **Convert private key file to PKCS#8**
|
||||
|
||||
The private key is in an openssl "EC Parameter File" format:
|
||||
```
|
||||
-----BEGIN EC PARAMETERS-----
|
||||
(base64)
|
||||
-----END EC PARAMETERS-----
|
||||
-----BEGIN EC PRIVATE KEY-----
|
||||
(base64)
|
||||
-----END EC PRIVATE KEY-----
|
||||
```
|
||||
It must be converted to PKCS#8 format first.
|
||||
```
|
||||
openssl pkcs8 -topk8 -nocrypt -in your-family-name.key -out your-family-name.pkcs8
|
||||
```
|
||||
Now you have a pkcs8 private key in the your-family-name.pkcs8 file:
|
||||
```
|
||||
-----BEGIN PRIVATE KEY-----
|
||||
(base64)
|
||||
-----END PRIVATE KEY-----
|
||||
```
|
||||
2. **Combine PKCS#8 and certificate files**
|
||||
|
||||
Now combine the pkcs8 and certificate files into a single file:
|
||||
```
|
||||
cat your-family-name.pkcs8 your-family-name.crt > your-family-name.secret
|
||||
```
|
||||
3. **Import combined file**
|
||||
|
||||
Now go to Java i2p console http://127.0.0.1:7657/configfamily page and Join Existing Router Family selecting the file your-family-name.secret to join that family.
|
||||
|
||||
([source](http://zzz.i2p/topics/3313))
|
||||
|
||||
Export to i2pd from Java-I2P
|
||||
----------------------------
|
||||
|
||||
Go to Java i2p console http://127.0.0.1:7657/configfamily page and export family key. You'll have a file `family-your-family-name-secret.crt`. It contains both the private key and the public key certificate.
|
||||
|
||||
Copy it to `your-family-name.key` and `your-family-name.crt`.
|
||||
|
||||
Edit `your-family-name.key` in a text editor to remove the certificate part so it contains only the private key part.
|
||||
|
||||
Edit `your-family-name.crt` in a text editor to remove the private key part so it contains only the certificate part.
|
||||
|
||||
Move the `your-family-name.key` and `your-family-name.crt` files to the i2pd /certificates/family/ folder, as instructed [here](https://i2pd.readthedocs.io/en/latest/user-guide/family/).
|
||||
|
||||
This assumes that i2pd/openssl can handle the PKCS#8 format for the private key.
|
||||
|
||||
([source](http://zzz.i2p/topics/3313))
|
||||
|
||||
------------------------
|
||||
|
||||
TODO: List common errors
|
||||
|
Loading…
x
Reference in New Issue
Block a user