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

IPAddress#isValidIPv6 rejects scoped IPv6 addresses as specified in RFC 4007 #2024

Open
andpab opened this issue Mar 12, 2025 · 0 comments
Open

Comments

@andpab
Copy link

andpab commented Mar 12, 2025

IPv6 addresses as described in https://datatracker.ietf.org/doc/html/rfc4007#section-11 are considered not valid by IPAddress#isValidIPv6

   As already mentioned, to specify an IPv6 non-global address without
   ambiguity, an intended scope zone should be specified as well.  As a
   common notation to specify the scope zone, an implementation SHOULD
   support the following format:

            <address>%<zone_id>

   where

      <address> is a literal IPv6 address,

      <zone_id> is a string identifying the zone of the address, and

      `%' is a delimiter character to distinguish between <address> and
      <zone_id>.

That prevents such IPv6 addresses from being used in org.bouncycastle.asn1.x509.GeneralName for example.

Are there any plans to support such IPv6 addresses in org.bouncycastle.asn1.x509.GeneralName?

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

No branches or pull requests

1 participant