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

[SOLVED] Error: LetsEncrypt account registration 400

Questions regarding the Command Line Interface
CLI
Post Reply
  • Print view
Advanced search
8 posts • Page 1 of 1
Felix
Posts: 134
Joined: Tue Aug 04, 2015 7:15 pm

Os: Ubuntu 15x
Web: apache + nginx
[SOLVED] Error: LetsEncrypt account registration 400
  • Quote

Post by Felix » Fri Oct 14, 2016 10:35 am

Heya guys,

I tried today to get a new Letsencrypt certificate for a new domain using the command line tool v-add-letsencrypt-domain. The command:

Code: Select all

v-add-letsencrypt-domain [user] [domain]
produced the error:

Code: Select all

Error: LetsEncrypt account registration 400
After some research I found this thread which provides some more detail of the error. Then I found this and this thread, but they're in a language a lot of people don't understand. So here is the solution to the problem:

You need to change something in file v-add-letsencrypt-user. In line 44 change

Code: Select all

agreement='https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf'
to

Code: Select all

agreement='https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf'
A small note to the developers of VESTA. Solving this problem would have been much easier if the code could also parse and output the "details" part, apart from "status", in Letsenrypt's server response.
Top

moh3n
Posts: 10
Joined: Sun Nov 27, 2016 8:31 am

Os: CentOS 6x
Web: apache + nginx
Re: [SOLVED] Error: LetsEncrypt account registration 400
  • Quote

Post by moh3n » Sun Nov 27, 2016 8:40 am

it didn't work for me
i'm using v0.9.8-17
in my /usr/local/vesta/bin/v-add-letsencrypt-user file i changed this line (line 44):

Code: Select all

agreement=$(curl -s -I "$api/terms" |grep Location |cut -f 2 -d \ |tr -d '\r\n')
to this:

Code: Select all

agreement='https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf'
but again i got the error :

Code: Select all

Error: LetsEncrypt account registration 400
Top

penta
Posts: 1
Joined: Sun Nov 27, 2016 12:48 pm

Re: [SOLVED] Error: LetsEncrypt account registration 400
  • Quote

Post by penta » Sun Nov 27, 2016 12:51 pm

You're missing xxd.

On CentOS, just:

yum install vim-common
Top

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

Re: [SOLVED] Error: LetsEncrypt account registration 400
  • Quote

Post by SS88 » Thu Dec 01, 2016 12:32 am

moh3n wrote:it didn't work for me
i'm using v0.9.8-17
in my /usr/local/vesta/bin/v-add-letsencrypt-user file i changed this line (line 44):

Code: Select all

agreement=$(curl -s -I "$api/terms" |grep Location |cut -f 2 -d \ |tr -d '\r\n')
to this:

Code: Select all

agreement='https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf'
but again i got the error :

Code: Select all

Error: LetsEncrypt account registration 400
Undo your modifications because what you changed is the fix from a previous bug. Penta has the right fix but what you just "fixed" will only make you see this error in future.
Top

moh3n
Posts: 10
Joined: Sun Nov 27, 2016 8:31 am

Os: CentOS 6x
Web: apache + nginx
Re: [SOLVED] Error: LetsEncrypt account registration 400
  • Quote

Post by moh3n » Fri Dec 02, 2016 5:00 pm

thanks its working like a charm :)
Top

mestresan
Posts: 33
Joined: Wed May 13, 2015 12:05 am

Re: [SOLVED] Error: LetsEncrypt account registration 400
  • Quote

Post by mestresan » Mon Dec 19, 2016 12:02 pm

pkey: Invalid format "perm" for -inform
pkey: Use -help for summary.
Error: LetsEncrypt account registration 400
Top

paunescumihai
Posts: 5
Joined: Sat Jan 07, 2017 11:19 pm

Re: [SOLVED] Error: LetsEncrypt account registration 400
  • Quote

Post by paunescumihai » Tue Jan 10, 2017 6:15 pm

I have this problem also, please help!

[root@test-server bin]# ./v-add-letsencrypt-user exclusivest [email protected]
Error: LetsEncrypt account registration 400
[root@test-server bin]#


I have already vim installed..
I tried putting:

curl -I https://acme-v01.api.letsencrypt.org/terms 2>/dev/null | grep "Location:"

this on v-add-letsencrypt-user

Location: https://letsencrypt.org/documents/LE-SA ... 1-2016.pdf

#agreement=$(curl -s -I "$api/terms" |grep Location |cut -f 2 -d \ |tr -d '\r\n')
agreement='https://letsencrypt.org/documents/LE-SA ... 1-2016.pdf'


but still i have the same error..


Edit 1:
Other domains are working, just checked and i they work spotless...
Edit 2:
/usr/local/vesta/bin/v-add-letsencrypt-domain exclusivest real-domain.tld www.real-domain.tld no
Error: LetsEncrypt account registration 400
Same error...
Domain works, but without https... other domains on same server work perfectly, i used certbot to generate on same server one ssl for the same domain and it worked, (i deleted that ssl).

If this cannot be done via web interface, how do i generate the ssl manualy and put it in vestacp (to set it and forget it, to automaticaly renew)
Top

noogen
Posts: 66
Joined: Thu Jan 05, 2017 9:20 pm

Re: [SOLVED] Error: LetsEncrypt account registration 400
  • Quote

Post by noogen » Wed Aug 09, 2017 1:45 am

mestresan wrote:pkey: Invalid format "perm" for -inform
pkey: Use -help for summary.
Error: LetsEncrypt account registration 400
Just adding this bug link here to help anyone got from googling for the account registration 400 with perm issue: https://github.com/serghey-rodin/vesta/issues/1253
Top


Post Reply
  • Print view

8 posts • Page 1 of 1

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
 

 

cron

Login  •  Register

I forgot my password