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

[release-v2.0] main: Use backported certgen updates. #3432

Merged
merged 2 commits into from
Aug 28, 2024

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Aug 28, 2024

This updates the 2.0 release branch to use the latest version of thecertgen module which includes updates to support Internationalized Domain Names (IDNs) via Punycode.

In particular, the following updated module version is used:

Note that it also cherry picks all of the commits included in updates to the certgen module to ensure they are also included in the release branch even though it is not strictly necessary since go.mod has been updated to require the new release and thus will pull in the new code. However, from past experience, not having code backported to modules available in the release branch too leads to headaches for devs building from source in their local workspace with overrides such as those in go.work.

The following PRs are included:

When a certificate is autogenerated by dcrd or with gencerts, errors
would occur if any hostname contained non-ASCII characters.  While X509
certificates do support UTF8 strings, Go does not yet support creating
these.

Instead, as a workaround and to keep certificate generation working to
avoid errors at dcrd startup, convert hostnames with non-ASCII Unicode
characters to their IDNA form, which uses Punycode to ASCII-encode the
problematic Unicode characters.
This updates the 2.0 release branch to use the latest version of the
certgen module which includes updates to support Internationalized
Domain Names (IDNs) via Punycode.

In particular, the following updated module version is used:

- github.com/decred/dcrd/[email protected]
@davecgh davecgh added this to the 2.0.4 milestone Aug 28, 2024
@davecgh davecgh merged commit 9db9c8f into decred:release-v2.0 Aug 28, 2024
2 checks passed
@davecgh davecgh deleted the rel20_certgen_backports branch August 28, 2024 19:12
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.

2 participants