Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Dev Section Scripting / API
  • Search

problem

Questions regarding the API
Application Programming Interface
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
valy
Posts: 9
Joined: Thu Feb 09, 2017 4:56 pm

problem
  • Quote

Post by valy » Thu Feb 09, 2017 5:00 pm

I tried that:

Code: Select all

curl https://MyIp:8083/api/?&user=admin&password=MyPass&cmd=v-add-domain&arg1=demo&arg2=d3m0p4ssw0rd&[email protected]
[1] 6685
[2] 6686
[3] 6687
[4] 6688
[5] 6689
[6] 6690

root@s2:~# curl: (60) SSL certificate problem: self signed certificate
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.

[1]   Exit 60                 curl https://MyIp:8083/api/?
[2]   Done                    user=admin
[3]   Done                    password=MyPass
[4]   Done                    cmd=v-add-domain
[5]-  Done                    arg1=demo
[6]+  Done                    arg2=d3m0p4ssw0rd
Dose't work. Why?
Top

JuzaoftheClouds
Posts: 15
Joined: Thu Feb 09, 2017 3:41 pm

Re: problem
  • Quote

Post by JuzaoftheClouds » Thu Feb 09, 2017 5:13 pm

valy wrote:I tried that:
CUT
Dose't work. Why?
Hi
do you have read the error message? you can find this:

Code: Select all

If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.
so retry with
$ curl -k https://MyIp:8083/api/?&user=admin&pass ... estacp.com


Issue explain:
curl tries to load ssl certificate (because of https protocol), but it is a self signed certificate, so the CA is not valid.
So it warn you about the possible security issue.
Top

valy
Posts: 9
Joined: Thu Feb 09, 2017 4:56 pm

Re: problem
  • Quote

Post by valy » Thu Feb 09, 2017 6:03 pm

I try to connect VestaCP to boxbilling and thehostingtool, But it does not work
Top

JuzaoftheClouds
Posts: 15
Joined: Thu Feb 09, 2017 3:41 pm

Re: problem
  • Quote

Post by JuzaoftheClouds » Thu Feb 09, 2017 6:22 pm

valy wrote:I try to connect VestaCP to boxbilling and thehostingtool, But it does not work
I don't know tht, and never used boxbilling, but if you don't explain the problems you've found, anyone here can help you.
Start posting:
  • * error logs
    * warning and error messages
    * describing your environment, configs and steps you made
Top

valy
Posts: 9
Joined: Thu Feb 09, 2017 4:56 pm

Re: problem
  • Quote

Post by valy » Thu Feb 09, 2017 6:34 pm

For Boxbilling when I want to activate user order he say: "Only pending setup or failed orders can be activated"
and nothing changes in vestacp
Top

valy
Posts: 9
Joined: Thu Feb 09, 2017 4:56 pm

Re: problem
  • Quote

Post by valy » Thu Feb 09, 2017 6:43 pm

I solved.
Thanks for the help
Name and surname was missing from username client
Top


Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “Scripting / API”



  • 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