I love using cURL to hit #Tableau Server with requests. It’s especially useful for testing trusted tickets.
I finally started running SSL on my main external Tableau Server, and noted my standard techniques stopped working:
curl -d “username=someUser” https://myserver.com/trusted
returned this error:
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.
Fine, so I used -k:
curl -d “username=someUser” -k https://myserver.com/trusted
and cURL keeps complaining:
curl: (35) error:14077458:SSL routines:SSL23_GET_SERVER_HELLO:reason(1112)
Used The Google, and found that sometimes you have to specify which version of OpenSSL to use. You need to add -3 to the string:
curl -d “username=someUser” -k -3 https://myserver.com/trusted