You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use of self signed or invalid certificates are common in dev environmnts. But I cannot find anything in the docs about how to tell slumber to ignore certificate errors, and when I tried to contact a server with a root cert not in the trusted chain I get:
invalid peer certificate: UnknownIssuer
It would be nice if this could be documented if it is possible already, or implemented if not currently possible.
After thinking about this a little more, I want to be very narrow about how this is enabled so someone doesn't enable it for all hostnames then accidentally fall victim to a MITM attack. Currently I'm thinking of adding a field to the root Collection type called allow_invalid_cert_hostnames, like so:
This would leave cert checking on for all other hostnames, and only disable it for the ones explicitly listed. This would be an exact match based on the hostname in the URL, so no regex/wildcard support.
Activity
LucasPickering commentedon Mar 15, 2024
This is not possible yet, but shouldn't be too hard to add
LucasPickering commentedon Mar 15, 2024
After thinking about this a little more, I want to be very narrow about how this is enabled so someone doesn't enable it for all hostnames then accidentally fall victim to a MITM attack. Currently I'm thinking of adding a field to the root Collection type called
allow_invalid_cert_hostnames, like so:This would leave cert checking on for all other hostnames, and only disable it for the ones explicitly listed. This would be an exact match based on the hostname in the URL, so no regex/wildcard support.
@snaggen Would this satisfy your need?
snaggen commentedon Mar 15, 2024
Sure, but make sure to enhance the error message with all the information needed to add the configuration.
Add `ignore_certificate_hosts` option
Add `ignore_certificate_hosts` option