xWyatt / check_rest_api

Nagios Core plugin to check output from a RESTful JSON API
GNU General Public License v3.0
10 stars 5 forks source link

Option --insecure not working #9

Closed Gianni-Caselli closed 3 years ago

Gianni-Caselli commented 3 years ago

Hi,

I tried to use the option -k or --insecure but it' doesn't work:

check_rest_api -H https://example.com/api/ -b 'user:pass' --insecure UNKNOWN - cURL call resulted in error: Peer certificate cannot be authenticated with given CA certificates

check_rest_api -H https://example.com/api/ -b 'user:pass' UNKNOWN - cURL call resulted in error: Peer certificate cannot be authenticated with given CA certificates

The command has no change with the --insecure option added (with the -k is the same)

Can you help me? I donwloaded the script from here Release 1.0.0

Br.

xWyatt commented 3 years ago

Oops, this was a bug. I've fixed it an re-released with version 1.0.1.

Download that and give it a shot; if --insecure/-k still doesn't work let me know.

Thanks! W