Menu

#1157 PFXImportCertStore() fails to delete private key containers.

v3.0
closed
2014-08-17
2008-03-31
No

As explained here - http://msdn2.microsoft.com/en-us/library/ms867088.aspx#pk_topic6 - the PFXImportCertStore() function creates a new key container for a private key but does not delete it. WiX calls this function when scheduling the deferred action to install certificates and because of this orphaned private key files are created.

In addition, uninstalling a certificate that has an associated private key does not delete that key.

The attached patch addresses both issues - it's not the prettiest bit of code but it works.

Discussion

  • Anonymous

    Anonymous - 2008-03-31

    Patch to address orphaned private keys.

     
  • Rob Mensching

    Rob Mensching - 2008-08-22

    Logged In: YES
    user_id=991639
    Originator: NO

    Used the bit to remove the key containers automatically.

     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 15 days (the time period specified by
    the administrator of this Tracker).

     
  • Rob Mensching

    Rob Mensching - 2008-10-03

    Original fix, while small, only works on Vista. Which is sad. Reactivating bug.

     
  • Rob Mensching

    Rob Mensching - 2008-10-03

    Did the removal by hand. More code but things work on XP again.

     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 15 days (the time period specified by
    the administrator of this Tracker).

     
MongoDB Logo MongoDB