Provides detailed scripts for:
- Bootstrapping the more advanced e2ee features: Cross-signing and SSSS (Secure Backup).
- Fetching the Cross-signing keys from SSSS and decrypting them with a passphrase/backup key.
- Signing the SSSS (Secure Backup) using the master Cross-Signing key.
This script is used for generating new Cross-Signing keys (master, self_signing, user_signing). It then bootstraps a new SSSS instance on the server with a recovery (default) key generated from a provided recovery passphrase. The encrypted Cross-signing keys are then uploaded to the SSSS. The encoded recovery key is output through standard output.
This script fetches the existing Cross-signing keys from the SSSS along with the default key. The default key is then decrypted using the provided passphrase/recovery key. Cross-signing keys are validated so they match the key info stored in the users device key list. The decrypted (with default key) master key is then used to sign a new Secure Backup version. It skips signing the secure backup using the device.
sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install nodejs
git clone https://github.com/murlock1000/matrix-js-bootstrap.git
npm install
cp sample.config.js config.js
node index.js -u <username> -p <password> -s <passphrase>