problem Topic is solved

Questions regarding the API
Application Programming Interface
valy
Posts: 4
Joined: Thu Feb 09, 2017 4:56 pm

problem

Postby 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&arg3=demo@vestacp.com
[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?

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

Re: problem

Postby 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.

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

Re: problem

Postby valy » Thu Feb 09, 2017 6:03 pm

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

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

Re: problem

Postby 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

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

Re: problem

Postby 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

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

Re: problem  Topic is solved

Postby valy » Thu Feb 09, 2017 6:43 pm

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


Return to “Scripting / API”



Who is online

Users browsing this forum: Google [Bot] and 2 guests