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

Hostname option for generating self-signed certificates on the fly. #200

Merged
merged 33 commits into from
Dec 15, 2023

Conversation

danfuzz
Copy link
Owner

@danfuzz danfuzz commented Dec 15, 2023

The main point of this PR was to make it possible for the system to generate self-signed certificates on the fly, but I ended up also diving into how hostnames and IP addresses are parsed and fixing that up quite a bit.

As of this PR, there's a problem with self-signed certs (as generated by this code) when trying to use them with IP-address-only (that is, no DNS name) incoming requests. There's a TODO in the code to remind me to figure it out… in the fullness of time.

As of this writing, there's a deficiency in that the resulting certificate
causes bad behavior when asked to be used for IP addresses. See TODO.
@danfuzz danfuzz merged commit 21c5344 into main Dec 15, 2023
1 check passed
@danfuzz danfuzz deleted the self-signed branch December 15, 2023 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant