<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[how to generate-admin-key.js ? (hint node)]]></title><description><![CDATA[<p dir="auto">While I doing my initial checkup<br />
I would like to mention that if you want to run the script <code>./scripts/generate-admin-keys.js</code></p>
<p dir="auto">as recommended in the doc</p>
<blockquote>
<p dir="auto">Support mailbox initialization<br />
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.<br />
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.</p>
</blockquote>
<p dir="auto">don't forget to call it with node like this:<br />
<code>node ./scripts/generate-admin-keys.js</code> as mentionned <a href="https://docs.cryptpad.fr/fr/admin_guide/installation.html#versions-older-than-4-6-0" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>.</p>
]]></description><link>https://forum.cloudron.io/topic/7329/how-to-generate-admin-key-js-hint-node</link><generator>RSS for Node</generator><lastBuildDate>Tue, 08 Sep 2026 18:36:14 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/7329.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 06 Jul 2022 19:06:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to how to generate-admin-key.js ? (hint node) on Thu, 22 Sep 2022 16:29:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jodumont" aria-label="Profile: JOduMonT">@<bdi>JOduMonT</bdi></a> thanks, that's really helpful <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=a9807027800" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">To add the key to the config.js, I added this code below the admin keys part (it can go anywhere though):</p>
<pre><code>supportMailboxPublicKey: [
        "~~~YourPublicKeyHere~~~",
    ],
</code></pre>
<p dir="auto">The snippet in context looks like:</p>
<pre><code>adminKeys: [
     //"[cryptpad-user1@my.awesome.website/YZgXQxKR0Rcb6r6CmxHPdAGLVludrAF2lEnkbx1vVOo=]",
 ],

 supportMailboxPublicKey: [
     "~~~YourPublicKeyHere~~~",
 ],

 /* =====================
  *        STORAGE
  * ===================== */
</code></pre>
<p dir="auto">And then just restart the app <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=a9807027800" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://forum.cloudron.io/post/53715</link><guid isPermaLink="true">https://forum.cloudron.io/post/53715</guid><dc:creator><![CDATA[3246]]></dc:creator><pubDate>Thu, 22 Sep 2022 16:29:24 GMT</pubDate></item></channel></rss>