- install letsencrypt: https://github.com/letsencrypt/letsencrypt#installation
- (optionally) make symlink:
ln -s /etc/letsencrypt/letsencrypt-auto /usr/local/bin/letsencrypt
Certs will be generated/renewed to /etc/letsencrypt/live/<domain>/
, so configure your webserver to take them from here OR symlink them to any domain directory (like I do)
My init/renew command uses webroot authenticator, so you need to specify webroot path.
In that directory letsencrypt will put .something/something/xxx
and remote server will try to access that file to verify you have full access to that domain.
If authentication fails, it probably is not accessible from outside. Usually it is caused by rule disallowing hidden files/directories to be show - you will need to modify it to allow that generated directory+file.
put force-https
files to /usr/local/vesta/data/templates/web/nginx/php5-fpm
(vesta 0.9.8) or to parent directory (older versions? try yourself), and then in Vesta change nginx template to force-https