AnsweredAssumed Answered

Not able to authenticate to qualys API using basic auth

Question asked by Anupam Kumar on Oct 9, 2014
Latest reply on Oct 10, 2014 by jnelson

When I try to access Qualys API using curl I get the following error from curl:

 

curl -H "X-Requested-With: Curl Sample" -u "scx_sa:passwd" "https://qualysapi.qualys.com/api/2.0/fo/asset/host/?action=list"

 

* Peer certificate cannot be authenticated with known CA certificates
curl: (60) Peer certificate cannot be authenticated with known CA certificates
More details here: http://www.example.com/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.


This is the only output I get.

 

Has anyone faced this ? And does anyone know how to resolve this ?

Outcomes