---
title: Error generating and getting DKIM keys in CyberPanel
description: "If you consistently get an error generating or getting DKIM keys in CyberPanel, please ensure that you are not facing permission errors. To check if you have a permission error, please do the following: 1. Login to CyberPanels admin area,…"
url: "https://wpemailmanager.com/docs/error-generating-and-getting-dkim-keys-in-cyberpanel/"
updated: "2023-01-15"
category: Troubleshooting
---

# Error generating and getting DKIM keys in CyberPanel

If you consistently get an error generating or getting DKIM keys in CyberPanel, please ensure that you are not facing permission errors. To check if you have a permission error, please do the following:

1. Login to CyberPanels admin area, and under the Email drop down, click on DKIM Manager.
   ![](https://wpemailmanager.com/wp-content/uploads/2023/01/cyberpanel-admin-dkim-manager-link.jpg)
2. On the DKIM Manager page, select the domain and click on generate DKIM keys.
   ![](https://wpemailmanager.com/wp-content/uploads/2023/01/cyberpanel-dkim-manager-generate-keys.jpg)
3. If you have a permission error, the following will be displayed.
   ![](https://wpemailmanager.com/wp-content/uploads/2023/01/cyberpanel-dkim-manager-generate-keys-permission-error.jpg)

## How to resolve permissions errors

If you have confirmed that you have a permission error, please do the following to resolve it:

1. Login to your server's console and enter the following command and press enter. If you are using a different version of Python, replace the 3.10 with the right version.

   `sudo chown cyberpanel:cyberpanel -R /usr/local/CyberCP/lib/python3.10/site-packages/tldextract/.suffix_cache`

   ![](https://wpemailmanager.com/wp-content/uploads/2023/01/cyberpanel-dkim-permission-error-fix.jpg)

Now retry [generating](https://wpemailmanager.com/documentation/developers/how-to-generate-a-domains-dkim-key/) or [obtaining](https://wpemailmanager.com/documentation/developers/how-to-get-a-domains-dkim-key/) the DKIM key.
