Error "certificate verify failed" returned from curl command
Symptom
一个坏蛋l command to the switch URL fails with an error similar to the following:
SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Cause
The curl program could not verify the switch server certificate against the CA certificate bundle that comes with the curl installation, and you did not include the-koption in the curl command.
Action
Retry the command with the
-koption included.The switch HTTPS server uses self-signed certificates, which cannot be verified against a certificate authority. The
-k选择禁用旋度验证证书。For example:
$curl -k --noproxy "192.0.2.5" GET /tmp/auth_cookie \ "https://192.0.2.5/rest/v10.04/system/vlans"