Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rehamkhalil3 opened this issue May 2, 2023 · 2 comments
Labels

Comments

@rehamkhalil3
Copy link

No description provided.

@rehamkhalil3 rehamkhalil3 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 ? May 2, 2023
@professorabhay
Copy link

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.

@christhompson
Copy link
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
Labels
Projects
None yet
Development

No branches or pull requests

3 participants