Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Vesta CLI
  • Search

Let's Encrypt - How to use

Questions regarding the Command Line Interface
CLI
Post Reply
  • Print view
Advanced search
34 posts
  • 1
  • 2
  • 3
  • 4
  • Next
teochristian
Posts: 2
Joined: Tue Jul 26, 2016 7:28 am

Let's Encrypt - How to use
  • Quote

Post by 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!!!!
Top

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

Re: Let's Encrypt - How to use
  • Quote

Post by teochristian » Wed Jul 27, 2016 6:06 am

Anyone, please? Thank you!
Top

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

Re: Let's Encrypt - How to use
  • Quote

Post by 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.
Top

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

Re: Let's Encrypt - How to use
  • Quote

Post by 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??
Top

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

Re: Let's Encrypt - How to use
  • Quote

Post by 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.
Top

abst
Posts: 92
Joined: Mon Feb 15, 2016 6:48 am
Contact:
Contact abst
Website

Os: CentOS 6x
Web: nginx + php-fpm
Re: Let's Encrypt - How to use
  • Quote

Post by 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?
Top

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

Re: Let's Encrypt - How to use
  • Quote

Post by 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 :(
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Let's Encrypt - How to use
  • Quote

Post by 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
Top

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

Re: Let's Encrypt - How to use
  • Quote

Post by 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
Top

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

Os: Debian 7x
Web: apache + nginx
Re: Let's Encrypt - How to use
  • Quote

Post by 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....
Top


Post Reply
  • Print view

34 posts
  • 1
  • 2
  • 3
  • 4
  • Next

Return to “CLI”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password