Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. CryptPad
  3. how to generate-admin-key.js ? (hint node)

how to generate-admin-key.js ? (hint node)

Scheduled Pinned Locked Moved CryptPad
2 Posts 2 Posters 605 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • JOduMonTJ Offline
    JOduMonTJ Offline
    JOduMonT
    wrote on last edited by JOduMonT
    #1

    While I doing my initial checkup
    I would like to mention that if you want to run the script ./scripts/generate-admin-keys.js

    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.js as mentionned here.

    32463 1 Reply Last reply
    4
    • JOduMonTJ JOduMonT

      While I doing my initial checkup
      I would like to mention that if you want to run the script ./scripts/generate-admin-keys.js

      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.js as mentionned here.

      32463 Offline
      32463 Offline
      3246
      wrote on last edited by
      #2

      @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: [
           //"[cryptpad-user1@my.awesome.website/YZgXQxKR0Rcb6r6CmxHPdAGLVludrAF2lEnkbx1vVOo=]",
       ],
      
       supportMailboxPublicKey: [
           "~~~YourPublicKeyHere~~~",
       ],
      
       /* =====================
        *        STORAGE
        * ===================== */
      

      And then just restart the app 🙂

      👉 Find our more www.bebraver.online

      1 Reply Last reply
      3
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Bookmarks
      • Search