bluecmd / fortigate_exporter

Prometheus exporter for Fortigate firewalls
GNU General Public License v3.0
232 stars 72 forks source link

API Authentication issue due to SSL certificate #285

Closed ali3nz closed 6 months ago

ali3nz commented 6 months ago

I need some help getting around this. Either via disabling verification check on the API which I am ok with or getting the certificate trusted.

I saw a reddit post from the creator that said this ""You can provide the exporter with -extra-ca-certs and it will append any local CAs you want to trust in addition to the system root CA store - so you should be all good to go!""

However I am unsure on syntax to use and how to configure that exactly. Assuming that is in the docker compose file where the -extra-ca-certs is supposed to be added?

image image

Docker Compose file: image

Prometheus job configuration: image

ali3nz commented 6 months ago

I was able to resolve myself by importing letsencrypt CA cert to the fortigate.