AppleScript with HTTPS Enabled
I'm having some trouble getting AppleScript commands to work with the new HTTPS feature. I'm extremely excited to be using the built in HTTPS (thank you) and I haven't tried any new AppleScript examples until just now and found that I'm receiving cert-related errors when attempting to run any script I have. I changed the property "thePath" to use https instead of http. Both don't appear to work. The errors I receive are:
http:
curl: (52) Empty reply from server" number 52
https:
curl: (60) SSL certificate problem: Invalid certificate chain
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." number 60
I'm sure it's something simple, but I don't often use AppleScript or curl so I'm not quite sure what to look for.
http:
curl: (52) Empty reply from server" number 52
https:
curl: (60) SSL certificate problem: Invalid certificate chain
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." number 60
I'm sure it's something simple, but I don't often use AppleScript or curl so I'm not quite sure what to look for.
Comments
-
Hi - curl is complaining because SecuritySpy is using a self-signed certificate. Self signed certificates get you up and running instantly, however, as they haven't been verified by an official Certificate Authority, any client software encountering them may give warnings or errors. There are two solutions for this:
1. Purchase and install a certificate from a Certificate Authority for SecuritySpy.
2. Add the -k parameter to the curl command to tell it not to validate the certificate. With this parameter, it will accept the self-signed certificate without any warnings. You still get all the security features - the communication is still encrypted - so there is no particular disadvantage in doing this. So your curl command will start curl -k -s and then the URL, rather than simply curl -s.
Hope this helps!

