Page 2 of 5

Re: Script for generating letsencrypt SSL and configuring all daemons (Apache, nginx, dovecot, Exim, Vesta) to use it

Posted: Wed Sep 21, 2016 7:02 pm
by apachler
ok, thank you ...

Re: Script for generating letsencrypt SSL and configuring all daemons (Apache, nginx, dovecot, Exim, Vesta) to use it

Posted: Fri Nov 18, 2016 5:58 pm
by dpeca
Script is updated in order to make it compatible with upcoming v17 version of VestaCP.
If you are using it, please download latest copy:

Code: Select all

wget http://dl.mycity.tech/vesta/generate_ssl -O /usr/local/bin/generate_ssl
chmod u+x /usr/local/bin/generate_ssl

Re: Script for generating letsencrypt SSL and configuring all daemons (Apache, nginx, dovecot, Exim, Vesta) to use it

Posted: Sat Nov 26, 2016 7:22 am
by Harry77
I was using this script before the last vestacp update without any problem,
Today I tried it on a clean install (I tried twice) of centos 6 32 and I it works with hostname only.

I get:
Error: No SSL found
Everything went fine....etc

I have certs in /etc/letsencrypt/... but they are not installed

Re: Script for generating letsencrypt SSL and configuring all daemons (Apache, nginx, dovecot, Exim, Vesta) to use it

Posted: Sat Nov 26, 2016 2:40 pm
by apachler
this script is needed in v17 also? No way to make Vesta using Lets Encrypt for all services by default?

Re: Script for generating letsencrypt SSL and configuring all daemons (Apache, nginx, dovecot, Exim, Vesta) to use it

Posted: Sat Nov 26, 2016 3:16 pm
by Harry77
I tried once again in a clean install on cento6 6 64, same as above,
I get:
Error: SSL=no doesn't exist
Reloading httpd:
Everything went fine. Your certificate is ready: https://xxxxxxx.xxx

I can find certs as usual in the folder /etc/letsencrypt/... but it's not installed, once again in the hostname it works as aspected.

Re: Script for generating letsencrypt SSL and configuring all daemons (Apache, nginx, dovecot, Exim, Vesta) to use it

Posted: Sat Nov 26, 2016 5:37 pm
by dpeca
if you want, send me SSH credentials via private message, I will take a look.
You didn't provide output from SSH.

Re: Script for generating letsencrypt SSL and configuring all daemons (Apache, nginx, dovecot, Exim, Vesta) to use it

Posted: Sat Nov 26, 2016 5:39 pm
by dpeca
Before 10 days I released update for this script, I wrote a post about it.
Did you download updated version?

Re: Script for generating letsencrypt SSL and configuring all daemons (Apache, nginx, dovecot, Exim, Vesta) to use it

Posted: Sat Nov 26, 2016 6:54 pm
by dpeca
apachler wrote:this script is needed in v17 also? No way to make Vesta using Lets Encrypt for all services by default?
I will check it... I saw one command that Serghey built before one month.

Re: Script for generating letsencrypt SSL and configuring all daemons (Apache, nginx, dovecot, Exim, Vesta) to use it

Posted: Sun Nov 27, 2016 9:35 pm
by dpeca
There was an error in script, and now it's fixed.
Thank you Harry77 for reporting a bug.

If you are using this script, please download latest copy:

Code: Select all

wget http://dl.mycity.tech/vesta/generate_ssl -O /usr/local/bin/generate_ssl
chmod u+x /usr/local/bin/generate_ssl

Re: Script for generating letsencrypt SSL and configuring all daemons (Apache, nginx, dovecot, Exim, Vesta) to use it

Posted: Wed Nov 30, 2016 8:48 pm
by Loc_rabbirt
Hi,

Thank you so much for your script. I don't check it until now. I have problem here with the details below:

Code: Select all

Failed authorization procedure. domain.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: The key authorization file from the server did not match this challenge [z6rqH3NyOYBaRed8wlAx1i3T1nhI-m3xX8U-XHvkR_U.kjZFnssi88QbqQmqT5aoFZIHmGNQJRjma7_iA-xxx] != [z6rqH3NyOYBaRed8wlAx1i3T1nhI-m3xX8U-XHvkR_U.HroLKHp_NxjfUjx-2lFC61bb9nJ_wnjgluBRAxxx]
I'm followed your old reply: viewtopic.php?f=19&t=12617#p50574.

Maybe you can help me know what do to do now? I think the problem by I had using the let's encrypt gui in vestacp admin before run your script. Maybe it's the problem here.