When trying to access www.openvehicles.com:6869/api/ using a curl command I get "Authentication failed" even though the user name and password are correct. Has something on the server end changed?
When trying to access www.openvehicles.com:6869/api/ using a curl command I get "Authentication failed" even though the user name and password are correct. Has something on the server end changed?
The REST API listens on port 6868.
I get this result for port 6868.
root@raspberrypi:~/OVMS# curl -v -k -c cookiejar https://www.openvehicles.com:6868/api/cookie\?xxx\&password=xxx
* Trying 202.52.43.188...
* TCP_NODELAY set
* Connected to www.openvehicles.com (202.52.43.188) port 6868 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
* Curl_http_done: called premature == 1
* stopped the pause stream!
* Closing connection 0
curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
…and the V2 server REST API does not support SSL, and your call is missing the username parameter.
Is there any documentation or samples for accessing the server data?
Thanks
http://lists.openvehicles.com/pipermail/ovmsdev/2018-July/005352.html
Note: the simpleclient page has been removed from the current openvehicles.com site, so can currently only be used for cars on my server.
Another note: SSL support is actually possible and would be on port 6869, but needs a certificate. I'll try to add this on my server.
OK, SSL support is now available on my server:
http://lists.openvehicles.com/pipermail/ovmsdev/2019-September/006353.html
Yes, it working now. Thank you!