curl -k https://api.spark.io/v1/devices/55ff6e065075551234
70287/led access_token=2ffac8e46b02fa91b721e974ada7198e0d544321 -d params=l2,HIG
H
I get error like this:
curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:lib(20):func(144):reason(134)
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.
I believe the problem is that the vera doesn’t have a current certificate chain, so it can’t properly validate the certificate.
The luup curl command you give did not have the “-k” which should allow you to ignore the error. You said you did add the “-k” to the vera command line and got the same error – I’m not sure how or why. From my Vera I tried the command without the -k and got the certificate problem, as soon as I added the “-k”, the error went away. Are you sure you got that error with the “-k” added?
I’d love the local IP instead, however. Have you been able to switch a device without going over the public internet? (I saw your posts on this device, BTW :)) )
I already have this one connected to a switch… the dimming version is next.
I haven’t picked one of these up (yet - I’ve been eyeballing them, just haven’t had the time yet :).
I’ve just started to work with the Vera (my old setup was a minimalistic Insteon setup) - so for now I’m focusing on getting the lights, ceiling fans and home entertainment system working.