how to generate-admin-key.js ? (hint node)
JOduMonT last edited by JOduMonT
While I doing my initial checkup
I would like to mention that if you want to run the script
as recommended in the doc
Support mailbox initialization
You can configure a support mailbox in order to give users of your CryptPad instance a way to contact you securely if they have an issue with their account.
Your server is not yet configured to have a support mailbox. If you want a support mailbox to receive messages from your users, you should ask your server administrator to run the script located in "./scripts/generate-admin-keys.js", then store the public key in the "config.js" file and send you the private key.
don't forget to call it with node like this:
node ./scripts/generate-admin-keys.jsas mentionned here.
3246 last edited by
@JOduMonT thanks, that's really helpful
To add the key to the config.js, I added this code below the admin keys part (it can go anywhere though):
supportMailboxPublicKey: [ "~~~YourPublicKeyHere~~~", ],
The snippet in context looks like:
adminKeys: [ //"[firstname.lastname@example.org/YZgXQxKR0Rcb6r6CmxHPdAGLVludrAF2lEnkbx1vVOo=]", ], supportMailboxPublicKey: [ "~~~YourPublicKeyHere~~~", ], /* ===================== * STORAGE * ===================== */
And then just restart the app