imbrish / letsencrypt

Automatic issuing and renewal of Let's Encrypt SSL certificates on shared hostings.
GNU General Public License v3.0
44 stars 7 forks source link

UAPI access to cPanel is not available #11

Open nipunadodan opened 3 years ago

nipunadodan commented 3 years ago

I have no ssh access to my shared server so I have put it on a corn job and when it runs, it sends me an error as mentioned above. I do have the cPanel UAPI token with me but I have no clue where to put it on your solution. Can you please shed some light on this?

imbrish commented 3 years ago

This error is displayed when the uapi command is not available in the environment where the script executes. In principle uapi token is not required, because the script should be running on the same machine.

I'd try checking with your hosting if they support uapi and if so how it could be enabled and/or used. If you get uapi to work manually, but the script is still unable to access it, you may probably patch this part of code:

https://github.com/imbrish/letsencrypt/blob/f3bb1970b5789984cfca6ed3e060125a15c58fd8/bin/letsencrypt#L80-L85