Skip to content

how to use the badssl docker image with custom DNS name not badssl.test server for testing purposes ? #522

Description

@rehamkhalil3
No description provided.

Activity

  1. changed the title [-]how to use the badssl docker image with custom DNS name for testing purposes ?[/-] [+]how to use the badssl docker image with custom DNS name not badssl.test server for testing purposes ?[/+] on May 2, 2023
  2. abhayguptas commented on May 11, 2023

    @abhayguptas

    Hey @rehamkhalil3 , You can do it by just modifying the host file and add an entry mapping the custom DNS name to the IP address of the Docker container.127.0.0.1 mycustomdomain.com
    Then again pull the image from hub and run it on your desired port and after running successfully you can access it by your custom DNS.

  3. christhompson commented on May 22, 2024

    @christhompson
    Collaborator

    You can change the test server domain by changing the variable in the main Makefile the Domain config variable for generating the test certs (here https://github.com/chromium/badssl.com/blob/master/Makefile#L36). You'll then also need to change the /etc/hosts list to use the new domain (or however you are setting up DNS for your test server instance).

    I have not tried re-configuring the test server in a long time though, so there may be some rough edges. If you do this and report back I'd be happy to brainstorm improvements to running and customizing the test server.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions