[SOLVED]Acme Let's Encrypt - NameCheap api error API Key is invalid or API access has not been enabled

sheshman

Member
Jan 16, 2023
46
3
8
Hi,

Using PMG 8.0.3 trying to create Let's encrypt certificate for my server but keep getting "error API Key is invalid or API access has not been enabled" error, i've reached to namecheap's support they checked and confirmed that my api key & api service works without any problem.

When i call the production enviroment namecheap api through curl from server's cli namecheap api responds without any error but when i try to create certificate it returns incalid API access error, my configuration's screen shots as attached.

What could be the issue?

Log output :
Code:
Loading ACME account details
Placing ACME order
Order URL: https://acme-v02.api.letsencrypt.org/acme/order/1830927627/286267970897

Getting authorization details from 'https://acme-v02.api.letsencrypt.org/acme/authz-v3/375515955697'
The validation for mxp01.postailetisim.com is pending!
[Thu Jul 11 14:07:27 +03 2024] error API Key is invalid or API access has not been enabled
[Thu Jul 11 14:07:27 +03 2024] API Key is invalid or API access has not been enabled
[Thu Jul 11 14:07:29 +03 2024] error API Key is invalid or API access has not been enabled
[Thu Jul 11 14:07:29 +03 2024] error API Key is invalid or API access has not been enabled
[Thu Jul 11 14:07:29 +03 2024] error API Key is invalid or API access has not been enabled
[Thu Jul 11 14:07:29 +03 2024] invalid domain
[Thu Jul 11 14:07:29 +03 2024] Error add txt for domain:_acme-challenge.mxp01.postailetisim.com
TASK ERROR: command 'setpriv --reuid nobody --regid nogroup --clear-groups --reset-env -- /bin/bash /usr/share/proxmox-acme/proxmox-acme setup namecheap mxp01.postailetisim.com' failed: exit code 1
 

Attachments

  • 001.png
    001.png
    16.7 KB · Views: 7
  • 002.png
    002.png
    33.4 KB · Views: 8
  • 003.png
    003.png
    34.1 KB · Views: 7
  • 004.png
    004.png
    42.2 KB · Views: 5
Last edited:
solution : just simply remove the " from plugin parameters it must be as below;
Code:
NAMECHEAP_API_KEY=your_key
NAMECHEAP_USERNAME=your_username
NAMECHEAP_SOURCEIP=your_white_listed_ip
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!