I can do the following without any problems:
curl -u "username:password" http://www.example.com/exportfile.xml
But if I try to use the same command to the https version of our site it fails
curl -u "username:password" https://www.example.com/exportfile.xml
This is what the error message looks like:
About to connect() to www.example.com port 443 (#0)
Trying "some ip"... connected
Connected to www.example.com (some ip) port 443 (#0)
Initializing NSS with certpath: sql:/etc/pki/nssdb
CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
NSS error -5938
Closing connection #0
SSL connect error
curl: (35) SSL connect error
All help is appreciated