Skip to content

Use self signed certificates #109

Closed

Description

@snaggen

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.

Activity

  1. added
    featureNew behavior to enable things that were previously not possible
    on Mar 15, 2024
  2. LucasPickering commented on Mar 15, 2024

    @LucasPickering
    Owner

    This is not possible yet, but shouldn't be too hard to add

  3. LucasPickering commented on Mar 15, 2024

    @LucasPickering
    Owner

    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:

    allow_invalid_cert_hostnames: ["127.0.0.1", "dev.test.website"]

    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?

  4. snaggen commented on Mar 15, 2024

    @snaggen
    Author

    Sure, but make sure to enhance the error message with all the information needed to add the configuration.

  5. added a commit that references this issue on Mar 15, 2024
    de26e39
  6. added a commit that references this issue on Mar 15, 2024
    fd8436b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew behavior to enable things that were previously not possible

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions