-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
Milestone
Description
As currently written, the new X509CertificateLoader class allows duplicate attributes. For Windows, the current filtering/inclusion algorithm will have the effect of reversing these attributes from their input order when compared to the DangerousNoLimits import.
Some possible outcomes:
- Allow duplicates, change to an order-preserving filter.
- Allow duplicates, permitting inconsistent ordering.
- Reject duplicates for items being imported (e.g. if IgnorePrivateKeys is true, don't check for duplicates in private keys)
- Reject duplicates for all importable objects (e.g. check private keys irrespective of IgnorePrivateKeys, but do not check SecretBag values)
- Reject duplicates for all objects
- Reject duplicates for imported/importable/all objects, but only for the few well-known OIDs
If the chosen outcome is "allow duplicates, order-preserving", then we need to check that we are interpreting the LocalKeyId with the same firstness/lastness/value-based-ness that Windows does.