Can't renew host SSL

I tried to renew the host SSL so I can have the hestiaCP access secured but i failed.

root@vps:~# /usr/local/hestia/bin/v-add-letsencrypt-host

Error: Unable to add vps.xxx.xx. xxx.xxx belongs to a different user
Error: web domain vps.xxx.xxx doesn’t exist

root@vps:~# sudo -u super /usr/local/hestia/bin/v-add-letsencrypt-host

/usr/local/hestia/func/main.sh: line 10: /usr/local/hestia/conf/hestia.conf: Permission denied
/usr/local/hestia/func/main.sh: line 10: /usr/local/hestia/conf/hestia.conf: Permission denied
grep: /usr/local/hestia/conf/hestia.conf: Permission denied
/usr/local/hestia/func/main.sh: line 10: /usr/local/hestia/conf/hestia.conf: Permission denied
/usr/local/hestia/func/main.sh: line 10: /usr/local/hestia/conf/hestia.conf: Permission denied
grep: /usr/local/hestia/conf/hestia.conf: Permission denied
grep: /usr/local/hestia/data/users/*/web.conf: Permission denied
Error: user doesn’t exist
/usr/local/hestia/func/main.sh: line 126: /usr/local/hestia/log/error.log: Permission denied

Any idea how to fix this paradox? :slight_smile:

Move web domain vps.xxx.xx from super user to the user who already has the main domain xxx.xx or from settings, modify the security policy Enforce subdomain ownership to No

Hi sahsanu. thanks for your quick reply.

I did not have the vps.xxx.xxx sub-domain created. i set it up and ran the command again:

root@vps:~# sudo /usr/local/hestia/bin/v-add-letsencrypt-host

The subdomain is shown on the panel as a valid SSL and the access to the panel is back to HTTPS.

Thank you!

1 Like