Skip to content

Npcap installer may install duplicate root certificates. #692

@dmiller-nmap

Description

@dmiller-nmap
Contributor

Npcap's installer adds certificates to the system's trust store in order to avoid issues with signature validation on some systems. Using certutil.exe to add a certificate when one with the same thumbprint already exists will result in a duplicate if the existing cert has additional context info like FriendlyName. These duplicate certs can cause problems for software using Windows APIs like System.ServiceModel.Security.SecurityUtils.GetCertificateFromStoreCore, which fails if it does not find exactly one certificate that matches.

Our intended fix is for the installer to first check if a certificate exists in the store before attempting to install it. Also, if a duplicate without FriendlyName is found, we will delete that duplicate.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @dmiller-nmap

        Issue actions

          Npcap installer may install duplicate root certificates. · Issue #692 · nmap/npcap