Error generating Let's Encrypt SSL: /usr/local/bin/lego is required

fra besk

New member
Joined
Feb 14, 2026
Messages
2
Hello everyone,

I am trying to generate a free Let's Encrypt SSL certificate for my domain via the DirectAdmin user panel, but I keep running into this error:

"Cannot Execute Your Request: /usr/local/bin/lego is required, exiting..."

It seems the lego client is missing or not properly installed on the server. Since I only have user-level access, I cannot run custom build scripts to install it myself.

Can someone confirm if this strictly requires root access to fix (so I should just contact my hosting provider), or if there is any workaround I can do from my end?

Thanks in advance for the help!
 
You'll have to contact your hosting provider as @Active8 mentioned. One thing to note that might help is, while you're waiting for your host to sort issue (I suspect LEGO hasn't been installed, or at least not correctly), go to zerossl.com and get a 90 day free SSL cert there to tide you over. Simply follow their simple prompts, decide how to validate your domain (http is normally best as DNS takes time to propagate) and install the cert and bundle in your DA hosting panel.

 
Back
Top