Hi,
As I know myVesta generate SSL for hostname automatically.
I found in VestaCP forum to generate SSL to the domain is by using these command:
# v-add-letsencrypt-domain 'admin' domain.com '' 'yes'
# v-update-host-certificate admin domain.com
# echo "UPDATE_HOSTNAME_SSL='yes'" >> /usr/local/vesta/conf/vesta.conf
Are those the correct way?
Because when I do those commands, the SSL cert for the hostname will be missing for a while, but it will be coming back in the next few days (I guess).
What is the better way?
Thanks,
bfcrew
How to generate SSL Cert for domain Properly
- myVesta
- Site Admin
- Posts: 964
- Joined: Fri Jun 19, 2020 9:59 am
- Has thanked: 10 times
- Been thanked: 6 times
The way is correct, except you already have last line added in vesta.conf
See https://forum.vestacp.com/viewtopic.php ... 53&p=72237
Why you think that SSL will be missing for a while?
It will be active instantly.
See https://forum.vestacp.com/viewtopic.php ... 53&p=72237
Why you think that SSL will be missing for a while?
It will be active instantly.
OK I got an error in one of my server, I didn't get root access so I need to use sudo command.
How to fix that permission denied error?
Code: Select all
debian@focus:/usr/$ sudo /usr/local/vesta/bin/v-add-letsencrypt-domain 'admin' domain.com '' 'yes'
debian@focus:/usr/$ sudo /usr/local/vesta/bin/v-update-host-certificate admin domain.com
debian@focus:/usr/$ sudo echo "UPDATE_HOSTNAME_SSL='yes'" >> /usr/local/vesta/conf/vesta.conf
-bash: /usr/local/vesta/conf/vesta.conf: Permission denied