Feature Request - ignore self-signed certs
I'm running this on my LAN with self-signed certs, and am unable to download the agent through the batch file without receiving the following:
ℹ 📦 Installing required dependencies...
✅ Dependencies installed successfully!
ℹ 🚀 Installing PatchMon Agent...
ℹ Server: https://patchmon.wapnet.local.lan
ℹ API ID: patchmon_04a19e6c7b96ce8b
ℹ 📁 Creating configuration directory...
ℹ 📥 Downloading PatchMon agent script...
curl: (60) SSL certificate problem: self-signed certificate in certificate chain
More details here: https://curl.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.I got around the first check by changing the command to curl -ks https://mypatchmon.mylan.local.net....etc, but this is a stopgap
2 Comments
I'm running this on my LAN with self-signed certs, and am unable to download the agent through the batch file without receiving the following:
ℹ 📦 Installing required dependencies... ✅ Dependencies installed successfully! ℹ 🚀 Installing PatchMon Agent... ℹ Server: https://patchmon.wapnet.local.lan ℹ API ID: patchmon_04a19e6c7b96ce8b ℹ 📁 Creating configuration directory... ℹ 📥 Downloading PatchMon agent script... curl: (60) SSL certificate problem: self-signed certificate in certificate chain More details here: https://curl.se/docs/sslcerts.html curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned above.I got around the first check by changing the command to
curl -ks https://mypatchmon.mylan.local.net....etc, but this is a stopgap
curl -sS -k
At the beginning of the one-line command would help however you're right, What we can do for ease is make this an option to ignore self-signed certificates and so it will give you the command to copy which suits your own environment.
I have added this to the v.1.2.7 so that in the next release we will have a toggle where if you have a self-signed cert then the command for one-liner will suit your setup.
Do you feel that would be valuable for you and others who have self-signed certs?

hello,
i am running into the same issue
And unfortunately, unless I am doing something wrong, -sS -k does not help, i get exactly the same behavior: nothing. no error, but not working either.
<img width="1737" height="909" alt="Image" src="https://github.com/user-attachments/assets/b5450c22-07d3-4eec-986d-263f71e8eb0a" />
the host remains offline, and everytime i go to it on patchmon, the pop up to set it up appears. it apparently never established connection.
clicking on fetching report does nothing.
edit:
without -k as i was saying, it literally does nothing:
and by the way, i see the toggle you mentioned above @9technologygroup but only in this section:
<img width="1809" height="1330" alt="Image" src="https://github.com/user-attachments/assets/76cf7c3d-14c9-49ef-88c6-4c9b289d012c" />
whereas, i would also have expected it in the pop up to set up, not only uninstall, an agent.
but either way, it doesnt work for me.
its worth mentioning (i think): at first, when i set it up, i did NOT set up https. since... in the wizard, i only get the option to use lets encrypt. which i dont want to. only having this option, i said "no" on the wizard. set it up via http web ui. added a couple of hosts. just to make sure the product has the features i was expecting / looking for. and only then, i updated /opt/patchmon.lab/backend/.env with https in the URL for CORS, and i updated the nginx file (/etc/nginx/sites-available/patchmon.lab):