dimuti
December 1, 2023, 6:54pm
1
I used the following --issue command successfully to generate Lets Encrypt certificates via terminal
acme.sh --issue -d example.com -d www.example.com \
-w /home/cpuname/example_com/public_html \
--server letsencrypt \
--ecc
And then this command to deploy the certificate successfully to cPanel
acme.sh --deploy -d example.com --deploy-hook cpanel_uapi
However, I get this following warning and error. Can someone help me resolve this?
Applying sitelist filter DEPLOY_CPANEL_AUTO_INCLUDE: *
Applying sitelist filter DEPLOY_CPANEL_AUTO_EXCLUDE:
warn [uapi] No domains passed in to CCSHooks::admin_certcopy! Context: HASH(0x391f230) at /var/cpanel/perl5/lib/CCSHooks.pm line 693.
dimuti
December 1, 2023, 7:19pm
2
It is related to the cPanel hooks used by acme.sh script during the deployment of certs. CCSHooks::admin_certcopy function is expecting domain info but its not receiving any. The warning originated in the CCSHooks.pm Perl module. Hasn't anyone experience this before?
1 Like
While you wait to see if anyone here knows you might try the official acme.sh github. That's no so much a cert issue but rather using some 3rd party API
4 Likes
dimuti
December 1, 2023, 7:23pm
4
sure, thx. I found only this. Not a solution but at least someone talking about it.
opened 08:33AM - 10 Jul 23 UTC
2 days ago I started to get an error message from acme.sh auto-updating overnigh… t.
I logged into my host and manually updated the cert and then deployed it and confirmed the error also happens there.
Based on the debug output, the deployment is working, and this is just noise?
The error seems to come from a system perl module, so if acme.sh itself hasn't changed, maybe the site updated something?
Steps to reproduce
------------------
```
acme.sh --deploy -d yasmar.net --deploy-hook cpanel_uapi
```
Debug log
-----------------
```
[yasmdqpm@server113 ~]$ acme.sh --deploy -d yasmar.net --deploy-hook cpanel_uapi --debug 2
[Mon Jul 10 04:25:49 EDT 2023] Lets find script dir.
[Mon Jul 10 04:25:49 EDT 2023] _SCRIPT_='/home/yasmdqpm/.acme.sh/acme.sh'
[Mon Jul 10 04:25:49 EDT 2023] _script='/home/yasmdqpm/.acme.sh/acme.sh'
[Mon Jul 10 04:25:49 EDT 2023] _script_home='/home/yasmdqpm/.acme.sh'
[Mon Jul 10 04:25:49 EDT 2023] Using config home:/home/yasmdqpm/.acme.sh
[Mon Jul 10 04:25:49 EDT 2023] LE_WORKING_DIR='/home/yasmdqpm/.acme.sh'
https://github.com/acmesh-official/acme.sh
v3.0.6
[Mon Jul 10 04:25:49 EDT 2023] Running cmd: deploy
[Mon Jul 10 04:25:49 EDT 2023] Using config home:/home/yasmdqpm/.acme.sh
[Mon Jul 10 04:25:49 EDT 2023] default_acme_server='https://acme-v02.api.letsencrypt.org/directory'
[Mon Jul 10 04:25:49 EDT 2023] ACME_DIRECTORY='https://acme-v02.api.letsencrypt.org/directory'
[Mon Jul 10 04:25:49 EDT 2023] _ACME_SERVER_HOST='acme-v02.api.letsencrypt.org'
[Mon Jul 10 04:25:49 EDT 2023] _ACME_SERVER_PATH='directory'
[Mon Jul 10 04:25:49 EDT 2023] DOMAIN_PATH='/home/yasmdqpm/.acme.sh/yasmar.net'
[Mon Jul 10 04:25:49 EDT 2023] DOMAIN_CONF='/home/yasmdqpm/.acme.sh/yasmar.net/yasmar.net.conf'
[Mon Jul 10 04:25:49 EDT 2023] _deployApi='/home/yasmdqpm/.acme.sh/deploy/cpanel_uapi.sh'
[Mon Jul 10 04:25:50 EDT 2023] _cdomain='yasmar.net'
[Mon Jul 10 04:25:50 EDT 2023] _ckey='/home/yasmdqpm/.acme.sh/yasmar.net/yasmar.net.key'
[Mon Jul 10 04:25:50 EDT 2023] _ccert='/home/yasmdqpm/.acme.sh/yasmar.net/yasmar.net.cer'
[Mon Jul 10 04:25:50 EDT 2023] _cca='/home/yasmdqpm/.acme.sh/yasmar.net/ca.cer'
[Mon Jul 10 04:25:50 EDT 2023] _cfullchain='/home/yasmdqpm/.acme.sh/yasmar.net/fullchain.cer'
[Mon Jul 10 04:25:50 EDT 2023] _cert=REDACTED
[Mon Jul 10 04:25:50 EDT 2023] _key=REDACTED
[Mon Jul 10 04:25:50 EDT 2023] DEPLOY_CPANEL_AUTO_ENABLED='true'
[Mon Jul 10 04:25:50 EDT 2023] DEPLOY_CPANEL_AUTO_NOMATCH='false'
[Mon Jul 10 04:25:50 EDT 2023] DEPLOY_CPANEL_AUTO_INCLUDE='*'
[Mon Jul 10 04:25:50 EDT 2023] DEPLOY_CPANEL_AUTO_EXCLUDE
[Mon Jul 10 04:25:50 EDT 2023] UAPI sites found: yasmar.net
test.yasmar.net
[Mon Jul 10 04:25:50 EDT 2023] DEPLOY_CPANEL_AUTO_NOMATCH is false
[Mon Jul 10 04:25:50 EDT 2023] Matched UAPI sites: yasmar.net
[Mon Jul 10 04:25:50 EDT 2023] Applying sitelist filter DEPLOY_CPANEL_AUTO_INCLUDE: *
[Mon Jul 10 04:25:50 EDT 2023] Remaining sites: yasmar.net
[Mon Jul 10 04:25:50 EDT 2023] Applying sitelist filter DEPLOY_CPANEL_AUTO_EXCLUDE:
[Mon Jul 10 04:25:50 EDT 2023] Remaining sites: yasmar.net
[Mon Jul 10 04:25:50 EDT 2023] 1 sites to deploy
[2023-07-10 04:25:51 -0400] warn [uapi] No domains passed in to CCSHooks::admin_certcopy! Context: HASH(0x2a57dd0) at /var/cpanel/perl5/lib/CCSHooks.pm line 693.
[Mon Jul 10 04:25:51 EDT 2023] ---
apiversion: 3
func: install_ssl
module: SSL
result:
data:
action: none
aliases:
- mail.yasmar.net
cert_id: yasmar_net_b4eca_54325_1696734468_e8464e9934cd88b7398914a91246ff11
domain: yasmar.net
extra_certificate_domains: []
html: "<br /><b>This certificate was already installed on this host. The system made no changes.</b><br />\n"
ip: 68.65.122.75
key_id: b4eca_54325_330b765fb1afbf3edd5db1f5c95237be
message: This certificate was already installed on this host. The system made no changes.
servername: yasmar.net
status: 1
statusmsg: This certificate was already installed on this host. The system made no changes.
user: yasmdqpm
warning_domains:
- mail.yasmar.net
working_domains:
- yasmar.net
errors: ~
messages:
- The certificate was successfully installed on the domain “yasmar.net”.
metadata: {}
status: 1
warnings: ~
[Mon Jul 10 04:25:51 EDT 2023] Succcessfully deployed to yasmar.net
[Mon Jul 10 04:25:51 EDT 2023] Successfully deployed certificate to 1 of 1 sites via UAPI
[Mon Jul 10 04:25:51 EDT 2023] Success
```
1 Like
You might also try a cPanel forum. Their API isn't unique to any particular ACME client
Or maybe even a general purpose programming forum like stackoverflow
Still, someone here might know but it's not our main focus
3 Likes
rg305
December 1, 2023, 11:27pm
6
Have you been able to use those same steps before?
If so, where they also ECC type cert(s)?
Note: I don't use cPanel, nor much of acme.sh
3 Likes
system
Closed
December 31, 2023, 11:28pm
7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.