# Discourse MCP User API Key Generator Error Nodejs \>20

**URL:** https://meta.discourse.org/t/discourse-mcp-user-api-key-generator-error-nodejs-20/390073
**Category:** Support
**Tags:** mcp
**Created:** [December 1, 2025, 4:56pm UTC](https://meta.discourse.org/t/discourse-mcp-user-api-key-generator-error-nodejs-20/390073 "2025-12-01T16:56:38Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [December 1, 2025, 8:10pm UTC](https://meta.discourse.org/t/discourse-mcp-user-api-key-generator-error-nodejs-20/390073/4 "2025-12-01T20:10:30Z")

</div>

> [@deviantintegral](#):
>
> When I run the User API Key generator, I get the following error:
> 
> ```plaintext
> Decrypting payload…
> [2025-12-01T16:38:59.409Z] ERROR Failed to decrypt payload: RSA_PKCS1_PADDING is no longer supported for private decryption.
> 
> ```
> 
> It looks like this has been unsupported by default since nodejs 20.

What OS, NodeJS and OpenSSL version are you running?

It works fine for me on

Linux  
Node 24.5  
OpenSSL 3.6.0

```plaintext

◄ 0s ◎ npx @discourse/mcp@latest generate-user-api-key \
             --site https://meta.discourse.org \
             --save-to profile.json

🔑 Discourse User API Key Generator

Site: https://meta.discourse.org
Scopes: read,write

Generating RSA key pair...
✓ Key pair generated

Please visit this URL to authorize the application:

https://meta.discourse.org/user-api-key/new?application_name=Discourse+MCP&client_id=discourse-mcp&scopes=read%2Cwrite&public_key=-----BEGIN+PUBLIC+KEY-----blablabla----END+PUBLIC+KEY-----%0A&nonce=1764619683010

After authorizing, you will be redirected to a URL like:
  discourse://auth_redirect?payload=<encrypted_payload>

Or you may see the encrypted payload displayed on the page.

Paste the encrypted payload here: longkey

Decrypting payload...
✓ User API Key retrieved successfully

✓ Saved to profile: profile.json

{
  "success": true,
  "profile": "profile.json"
}

◄ 16s ◎ node --version 
v24.5.0

◄ 0s ◎ openssl --version
OpenSSL 3.6.0 1 Oct 2025 (Library: OpenSSL 3.6.0 1 Oct 2025)

```

---

_[View the full topic](https://meta.discourse.org/t/discourse-mcp-user-api-key-generator-error-nodejs-20/390073)._
