X500DistinguishedName parsing of friendly names
On Linux and macOS, a distinguished name with a relative distinguished name component that is prefixed with "OID." followed by a friendly name will no longer parse. For example,
OID.STREET=MainStreet no longer parses.
On Linux and macOS only, a distinguished name would successfully parse even if the object identifier (OID) was a friendly name.
Attempting to parse a distinguished name with a component prefixed with "OID." but not followed by a well-formed, dotted-decimal OID throws a CryptographicException.
.NET 7 Preview 5
Type of breaking change
This change can affect binary compatibility.
Reason for change
Windows does not permit distinguished names with friendly name OIDs, and that it worked in Linux and macOS was coincidence and not intentional. To bring consistency throughout platforms, the parsing logic was improved to not accept this form.
Change "OID."-prefixed relative distinguished name components to use an OID, such as
Submit and view feedback for