# Export credientials encrypted

**URL:** <https://community.n8n.io/t/export-credientials-encrypted/50549>\
**Category:** Questions\
**Created:** [July 22, 2024, 7:08pm UTC](https://community.n8n.io/t/export-credientials-encrypted/50549 "2024-07-22T19:08:29Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![nusquama](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/nusquama/32/41968_2.png) [@nusquama](https://community.n8n.io/u/nusquama)\
**Post date:** [July 22, 2024, 7:08pm UTC](https://community.n8n.io/t/export-credientials-encrypted/50549/1 "2024-07-22T19:08:29Z")

</div>

hi  
i try to export my credential decrypted but i have this message..

Error exporting credentials. See log messages for details.  
Credentials could not be decrypted. The likely reason is that a different “encryptionKey” was used to encrypt the data.

any idea ?

thanks

## Share the output returned by the last node

## Information on your n8n setup

- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/26906_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [July 22, 2024, 7:08pm UTC](https://community.n8n.io/t/export-credientials-encrypted/50549/2 "2024-07-22T19:08:30Z")

</div>

It looks like your topic is missing some important information. Could you provide the following if applicable.

- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![barn4k](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/barn4k/32/8170_2.png) [@barn4k](https://community.n8n.io/u/barn4k)\
**Post date:** [July 22, 2024, 7:54pm UTC](https://community.n8n.io/t/export-credientials-encrypted/50549/3 "2024-07-22T19:54:41Z")

</div>

hello @nusquama

That message means your decryption key has changed. Do the credentials work in the n8n UI when building a workflow?

---

<div class="post-metadata">

**Author:** ![nusquama](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/nusquama/32/41968_2.png) [@nusquama](https://community.n8n.io/u/nusquama)\
**Post date:** [July 22, 2024, 7:59pm UTC](https://community.n8n.io/t/export-credientials-encrypted/50549/4 "2024-07-22T19:59:54Z")

</div>

yes it work

---

<div class="post-metadata">

**Author:** ![netroy](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/netroy/32/22154_2.png) [@netroy](https://community.n8n.io/u/netroy)\
**Post date:** [July 22, 2024, 8:10pm UTC](https://community.n8n.io/t/export-credientials-encrypted/50549/5 "2024-07-22T20:10:17Z")

</div>

Does the export work for you without the `--decrypted` flag?

---

<div class="post-metadata">

**Author:** ![nusquama](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/nusquama/32/41968_2.png) [@nusquama](https://community.n8n.io/u/nusquama)\
**Post date:** [July 23, 2024, 6:31am UTC](https://community.n8n.io/t/export-credientials-encrypted/50549/6 "2024-07-23T06:31:43Z")

</div>

yes, but after i cannot import if i want to do a clean install so my export is useless without decrypted

---

<div class="post-metadata">

**Author:** ![netroy](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/netroy/32/22154_2.png) [@netroy](https://community.n8n.io/u/netroy)\
**Post date:** [July 23, 2024, 8:36am UTC](https://community.n8n.io/t/export-credientials-encrypted/50549/7 "2024-07-23T08:36:36Z")

</div>

How are you running n8n server, and how are you running the export command?  
If you have not set an encryption key yourself, there is a generated key in `~/.n8n/config`. So the execute command needs to run where it has access to the exact same config file as the server.

---

<div class="post-metadata">

**Author:** ![nusquama](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/nusquama/32/41968_2.png) [@nusquama](https://community.n8n.io/u/nusquama)\
**Post date:** [July 23, 2024, 7:32pm UTC](https://community.n8n.io/t/export-credientials-encrypted/50549/8 "2024-07-23T19:32:57Z")

</div>

i’m on coolify  
i try this  
~/.n8n $ n8n export:credentials --backup --decrypted --output=credentials  
User settings loaded from: /home/node/.n8n/config  
Error exporting credentials. See log messages for details.  
Credentials could not be decrypted. The likely reason is that a different “encryptionKey” was used to encrypt the data.

---

<div class="post-metadata">

**Author:** ![nusquama](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/nusquama/32/41968_2.png) [@nusquama](https://community.n8n.io/u/nusquama)\
**Post date:** [July 24, 2024, 11:45am UTC](https://community.n8n.io/t/export-credientials-encrypted/50549/9 "2024-07-24T11:45:55Z")

</div>

so, i did more simply ! i just copy my config files !!

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/36532_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [October 22, 2024, 11:46am UTC](https://community.n8n.io/t/export-credientials-encrypted/50549/10 "2024-10-22T11:46:37Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
