Page 1 of 1

Error 400: Adding SSL with Let's Encrypt

Posted: Wed Jun 21, 2017 7:20 pm
by Spythe
I just installed Vesta (latest) on my Ubuntu 16.04 VPS and was really amazed it had Let's Encrypt automated support. I added my domains and thought everything worked. However, I checked the web interface and saw none of the domains had SSL support, although I did check the box when adding the domain.

When I manually check the SSL box and choose Let's Encrypt, as the only edit to the domain, I'm getting the following error:

"Error: LetsEncrypt account registration 400".

It's a clean VPS, as I just set up a new one via DigitalOcean. Just installed Vesta right away with the below setup.

Image

Re: Error 400: Adding SSL with Let's Encrypt

Posted: Wed Jun 21, 2017 7:56 pm
by syfry
I tried "Lets Encrypt" as well after clean install, there is an additional component you have to setup in order to use it. I started reading the Lets Encrypt website and found it was a little more involved that I wanted to do, and the certs are only good for 90 days, but if you want to use it, check out the instructions on their site.

Re: Error 400: Adding SSL with Let's Encrypt

Posted: Wed Jun 21, 2017 8:08 pm
by ScIT
syfry wrote:I tried "Lets Encrypt" as well after clean install, there is an additional component you have to setup in order to use it. I started reading the Lets Encrypt website and found it was a little more involved that I wanted to do, and the certs are only good for 90 days, but if you want to use it, check out the instructions on their site.
the certs are only valid for 90days, that's right. but after this 90 days (or better said 60 days) vestacp will automatically renew them. So there isnt any problem to use let's encrypt, expect high availability system, there i like to setup for example 3 years rapidssl certs for around 15 usd.

For the basic thread and your ""Error: LetsEncrypt account registration 400": Please check your entered e-mail address, this have to be valid. Also you can try manualy register an user over cli (v-add-letsencrypt-user user [email protected]), if this does not work, please post the output that we can help you to find the failure.

Re: Error 400: Adding SSL with Let's Encrypt

Posted: Wed Jun 21, 2017 8:35 pm
by Spythe
Ok well that worked. Now time to figure out how I force HTTPS for all domains by default.
I saw a lot of threads posting things like below, but I don't got a clue where to put that..

Code: Select all

server {
    listen 80;
    listen 443 ssl;
    server_name www.example.com;
    return 301 $scheme://example.com$request_uri;
}

server {
    listen 80;
    listen 443 ssl;
    server_name example.com;
    # rest goes here...
}

Re: Error 400: Adding SSL with Let's Encrypt

Posted: Mon Jul 24, 2017 2:00 pm
by skurudo
Spythe wrote: I saw a lot of threads posting things like below, but I don't got a clue where to put that..
nginx user config

Re: Error 400: Adding SSL with Let's Encrypt

Posted: Wed Aug 02, 2017 5:30 am
by shahidirfan
I am also facing the same issue. I have installed clean vestacp on Ubuntu 16.04 with default settings. Anyone have the solution?