Let's Encrypt - How to use Topic is solved

Questions regarding the Command Line Interface
CLI
Forum rules
Before creating a new topic or reply on the forum you should fill out additional fields "Os" and "Web" in your profile section.
In case of violation, the topic can be closed or response from the support will not be received.
teochristian
Posts: 2
Joined: Tue Jul 26, 2016 7:28 am

Let's Encrypt - How to use  Topic is solved

Postby teochristian » Tue Jul 26, 2016 7:35 am

Hello!
I just saw you added Let's Encrypt official support. It is great, but I don't know how to use it.

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


Which of the commands before I should use to make my domain example.com with ssl? Please write an example for "example.com" domain name (I want to activate ssl to be https://example.com). And I also know that the certificate expires at 90 days, does it will be automatically renewed? If not, how to renew it?

Thanks!!!!

teochristian
Posts: 2
Joined: Tue Jul 26, 2016 7:28 am

Re: Let's Encrypt - How to use

Postby teochristian » Wed Jul 27, 2016 6:06 am

Anyone, please? Thank you!

SS88
Posts: 306
Joined: Thu Nov 19, 2015 12:40 pm

Re: Let's Encrypt - How to use

Postby SS88 » Fri Jul 29, 2016 8:11 am

Code: Select all

v-add-letsencrypt-domain USERNAME DOMAIN


Creates a certificate and enables SSL on the domain name.

Any problems when issuing a command like this: /usr/local/vesta/bin/v-add-letsencrypt-user: line 59: xxd: command not found

Code: Select all

yum install vim-common


and re-try the code again.

Code: Select all

v-update-letsencrypt-ssl


This script automatically checks all the certificates issued and will renew them if they are close to expiration.

sennevb
Posts: 31
Joined: Fri Dec 05, 2014 3:10 pm

Re: Let's Encrypt - How to use

Postby sennevb » Fri Aug 05, 2016 8:36 am

anyone a step by step guide how to do this for vestacp conbtrolpanel itself?

do i need a cron job to do : v-update-letsencrypt-ssl or does vestacp do that automatically??

SS88
Posts: 306
Joined: Thu Nov 19, 2015 12:40 pm

Re: Let's Encrypt - How to use

Postby SS88 » Fri Aug 05, 2016 2:21 pm

sennevb wrote:anyone a step by step guide how to do this for vestacp conbtrolpanel itself?

do i need a cron job to do : v-update-letsencrypt-ssl or does vestacp do that automatically??


This is only CLI. Next Vesta release will include the GUI.

abst
Posts: 69
Joined: Mon Feb 15, 2016 6:48 am

Os: CentOS 7x
Web: nginx + php-fpm

Re: Let's Encrypt - How to use

Postby abst » Sat Aug 06, 2016 2:21 pm

When use v-add-letsencrypt-domain USERNAME DOMAIN i have problem:

Code: Select all

Error: LetsEncrypt account registration 400


How fix it?

SS88
Posts: 306
Joined: Thu Nov 19, 2015 12:40 pm

Re: Let's Encrypt - How to use

Postby SS88 » Sat Aug 06, 2016 3:18 pm

Try:

Code: Select all

yum install vim-common


I get this error after the fix I think it's letsEncrypt side but I have not had time to look into it yet :(

skurudo
VestaCP Team
Posts: 7808
Joined: Fri Dec 26, 2014 2:23 pm
Contact:

Re: Let's Encrypt - How to use

Postby skurudo » Thu Aug 11, 2016 2:37 pm

Change line 44 of: /usr/local/vesta/bin/v-add-letsencrypt-user

Code: Select all

agreement='https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf'


Thanks to abst from russian branch - http://forum.vestacp.com/viewtopic.php? ... 317#p48649
-> DigitalOcean competition - please, support us
-> fix for phpmyadmin - nice and sweet now

gursl
Posts: 5
Joined: Sat Jan 23, 2016 1:52 pm

Re: Let's Encrypt - How to use

Postby gursl » Sat Aug 13, 2016 3:51 am

Hello after following the steps and add the agreement. There is still a error message , please can you suggest how to proceed?

I have done:
1)

Code: Select all

yum install vim-common

2)
Change line 44 of: /usr/local/vesta/bin/v-add-letsencrypt-user

Code: Select all

agreement='https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf'

3)

Code: Select all

v-add-letsencrypt-domain USERNAME DOMAIN


Result:

Code: Select all

chown: cannot access `/home/admin/web/domain.com/public_html/.well-known': No such file or directory
Error: Error:  Authorizations for these names not found or expired: domain.com

Spheerys
Posts: 126
Joined: Tue Dec 29, 2015 12:36 pm

Os: Debian 8x
Web: apache + nginx

Re: Let's Encrypt - How to use

Postby Spheerys » Mon Aug 15, 2016 9:35 pm

I have another problem than you Gursl

After v-add-letsencrypt-domain USERNAME DOMAIN, nginx could restart.
After a service nginx restart, I had this error :
* Restarting nginx nginx nginx:
[emerg] host not found in "ips:443" of the "listen" directive in /home/me/conf/web/snginx.conf:2
nginx: configuration file /etc/nginx/nginx.conf test failed

And in my /home/me/conf/web/snginx.conf file, I have this :

Code: Select all

server {
    listen      ips:443;
    server_name domain.fr http://www.domain.fr;
    ssl         on;
    ssl_certificate      /home/me/conf/web/ssl.domain.fr.pem;
    ssl_certificate_key  /home/me/conf/web/ssl.domain.fr.key;
    error_log  /var/log/apache2/domains/domain.fr.error.log error;

    location / {
        proxy_pass      https://ips:8443;
        location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|tif|tiff|css|js|htm|html|ttf|otf|webp|woff|txt|csv|rtf|doc|docx|xls|xlsx|ppt|pptx|odf|odp|ods|odt|pdf|psd|ai|eot|eps|ps|zip|ta$
            root           /home/me/web/domain.fr/public_html;
            access_log     /var/log/apache2/domains/domain.fr.log combined;
            access_log     /var/log/apache2/domains/domain.fr.bytes bytes;
            expires        max;
            try_files      $uri @fallback;
        }
    }

    location /error/ {
        alias   /home/me/web/domain.fr/document_errors/;
    }

    location @fallback {
        proxy_pass      https://ips:8443;
    }

    location ~ /\.ht    {return 404;}
    location ~ /\.svn/  {return 404;}
    location ~ /\.git/  {return 404;}
    location ~ /\.hg/   {return 404;}
    location ~ /\.bzr/  {return 404;}

    include /home/me/conf/web/snginx.domain.fr.conf*;
}

And indeed, I don't know what is "ips" and where this word comes from....


Return to “CLI”



Who is online

Users browsing this forum: No registered users and 2 guests