We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on Vesta 2.0 and expect to release it by the end of 2024. Read more about it: https://vestacp.com/docs/vesta-2-development
Script for generating letsencrypt SSL and configuring all daemons (Apache, nginx, dovecot, Exim, Vesta) to use it
Script for generating letsencrypt SSL and configuring all daemons (Apache, nginx, dovecot, Exim, Vesta) to use it
Many server owners don't know how to install Letsencrypt SSL and configure all daemons to use it, especially Exim4 and dovecot.
I wrote a script that do it automatically.
In short - this script will generate SSL, for your server hostname or for any other domain on your server, and it will automatically configure all daemons to use that SSL.
Edit: this script is now obsolete
See new way for having SSL on all daemons - viewtopic.php?f=19&t=12617&p=72195#p72195
I wrote a script that do it automatically.
In short - this script will generate SSL, for your server hostname or for any other domain on your server, and it will automatically configure all daemons to use that SSL.
Edit: this script is now obsolete
See new way for having SSL on all daemons - viewtopic.php?f=19&t=12617&p=72195#p72195
Re: Script for generating letsencrypt SSL and configuring all daemons (Apache, nginx, dovecot, Exim, Vesta) to use it
Hi
Vestacp already support letsencrypt from cli
viewtopic.php?t=11927
Can you explain diference whit your script ?
Vestacp already support letsencrypt from cli
viewtopic.php?t=11927
Code: Select all
v-add-letsencrypt-domain USER DOMAIN [ALIASES] [RESTART]
v-add-letsencrypt-user USER [EMAIL]
v-check-letsencrypt-domain USER DOMAIN
v-list-letsencrypt-user USER [FORMAT]
v-sign-letsencrypt-csr USER DOMAIN CSR_DIR [FORMAT]
v-update-letsencrypt-ssl
Re: Script for generating letsencrypt SSL and configuring all daemons (Apache, nginx, dovecot, Exim, Vesta) to use it
Firstly, I saw a lot of messages on forum that is saying it not works.
Should be fixed in v17.
Secondly, a script that I wrote will configure all daemons - dovecot, Exim4, and Vesta on 8083 port.
All five daemons.
Vesta's built-in scripts will only configure Apache and nginx.
And as I said in first message, when VestaCP start to support letsencrypt naturally (when bugs became fixed) - I'll just write a new script that will use already generated SSL's (Letsencrypt SSL's that Vesta generated) - and then that new script will be used only for server hostname - as a tool that will configure Exim4, dovecot and Vesta daemon (nginx on port 8083) to use proper SSL.
Should be fixed in v17.
Secondly, a script that I wrote will configure all daemons - dovecot, Exim4, and Vesta on 8083 port.
All five daemons.
Vesta's built-in scripts will only configure Apache and nginx.
And as I said in first message, when VestaCP start to support letsencrypt naturally (when bugs became fixed) - I'll just write a new script that will use already generated SSL's (Letsencrypt SSL's that Vesta generated) - and then that new script will be used only for server hostname - as a tool that will configure Exim4, dovecot and Vesta daemon (nginx on port 8083) to use proper SSL.
Re: Script for generating letsencrypt SSL and configuring all daemons (Apache, nginx, dovecot, Exim, Vesta) to use it
Looks good .
If you want mirror for script I can host it :)
If you want mirror for script I can host it :)
Re: Script for generating letsencrypt SSL and configuring all daemons (Apache, nginx, dovecot, Exim, Vesta) to use it
Code: Select all
[root@149 bin]# generate_ssl admin xXx.net
/usr/local/bin/generate_ssl: line 86: ./letsencrypt-auto: No such file or directory
ERROR: Something went wrong. Check output above.
[root@149 bin]# generate_ssl admin xXx.xXx.xXx.xXx
/usr/local/bin/generate_ssl: line 86: ./letsencrypt-auto: No such file or directory
ERROR: Something went wrong. Check output above.
the hostname you mean domain or server address ?
----
xx.net is my domain
xXx.xXx.Xxx = server ip
Re: Script for generating letsencrypt SSL and configuring all daemons (Apache, nginx, dovecot, Exim, Vesta) to use it
Please run:
ls -l /root/letsencrypt/
and copy here output.
ls -l /root/letsencrypt/
and copy here output.
Re: Script for generating letsencrypt SSL and configuring all daemons (Apache, nginx, dovecot, Exim, Vesta) to use it
dpeca wrote:Please run:
ls -l /root/letsencrypt/
and copy here output.
Code: Select all
total 0
Re: Script for generating letsencrypt SSL and configuring all daemons (Apache, nginx, dovecot, Exim, Vesta) to use it
Try to run manually this (as root) :
If everything went OK, then run:
If everything went OK, then run:
Code: Select all
cd /root
git clone https://github.com/letsencrypt/letsencrypt
Code: Select all
cd letsencrypt
./letsencrypt-auto --help
Code: Select all
echo -e '#!/bin/bash\n' > /usr/local/bin/generate_all_ssls
chmod u+x /usr/local/bin/generate_all_ssls
crontab -l | { cat; echo "3 20 1 */2 * /usr/local/bin/generate_all_ssls > /var/log/generate_all_ssls.log"; } | crontab -
Re: Script for generating letsencrypt SSL and configuring all daemons (Apache, nginx, dovecot, Exim, Vesta) to use it
It would be nice to get support for subdomains like "sub.domain.com"
Thanks!
Thanks!
Re: Script for generating letsencrypt SSL and configuring all daemons (Apache, nginx, dovecot, Exim, Vesta) to use it
I think Vesta v17 will support letsencrypt completely.
My script is generally for server hostname (dovecot, Exim, Vesta) purpose :)
My script is generally for server hostname (dovecot, Exim, Vesta) purpose :)