We are starting CHRISTMAS Sale. Get 30% OFF on lifetime licenses with code: FYSKK72

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

Section with additional software for Vesta
apachler
Posts: 6
Joined: Wed Sep 21, 2016 10:57 am

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

Postby apachler » Wed Sep 21, 2016 7:02 pm

ok, thank you ...

dpeca
Collaborator
Posts: 239
Joined: Wed Nov 25, 2015 7:30 pm
Location: Serbia

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

Postby dpeca » Fri Nov 18, 2016 5:58 pm

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

Harry77
Posts: 10
Joined: Tue Jun 28, 2016 5:51 am

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

Postby Harry77 » Sat Nov 26, 2016 7:22 am

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

apachler
Posts: 6
Joined: Wed Sep 21, 2016 10:57 am

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

Postby apachler » Sat Nov 26, 2016 2:40 pm

this script is needed in v17 also? No way to make Vesta using Lets Encrypt for all services by default?

Harry77
Posts: 10
Joined: Tue Jun 28, 2016 5:51 am

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

Postby Harry77 » Sat Nov 26, 2016 3:16 pm

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.

dpeca
Collaborator
Posts: 239
Joined: Wed Nov 25, 2015 7:30 pm
Location: Serbia

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

Postby dpeca » Sat Nov 26, 2016 5:37 pm

if you want, send me SSH credentials via private message, I will take a look.
You didn't provide output from SSH.

dpeca
Collaborator
Posts: 239
Joined: Wed Nov 25, 2015 7:30 pm
Location: Serbia

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

Postby dpeca » Sat Nov 26, 2016 5:39 pm

Before 10 days I released update for this script, I wrote a post about it.
Did you download updated version?

dpeca
Collaborator
Posts: 239
Joined: Wed Nov 25, 2015 7:30 pm
Location: Serbia

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

Postby dpeca » Sat Nov 26, 2016 6:54 pm

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.

dpeca
Collaborator
Posts: 239
Joined: Wed Nov 25, 2015 7:30 pm
Location: Serbia

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

Postby dpeca » Sun Nov 27, 2016 9:35 pm

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

Loc_rabbirt
Posts: 12
Joined: Fri Nov 18, 2016 3:36 pm

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

Postby Loc_rabbirt » Wed Nov 30, 2016 8:48 pm

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.


Return to “3rd Party Software”



Who is online

Users browsing this forum: No registered users and 4 guests