Skip to content

Decide on a policy for duplicate attributes on PKCS12 values #103924

@bartonjs

Description

@bartonjs

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions