Hello everyone,

I'm running into an interesting issue with the iis:Certificate
element. I have a .p12 file that contains both a public and private
key and I'm installing it using this element:

        <iis:Certificate
          Id="clientcertificate"
          BinaryKey="ClientCertificate"
          Name="ClientCertificate"
          StoreLocation="localMachine"
          StoreName="my"
          />

When WiX installs this certificate I can see it just fine in the
"Certificates (Local Computer) -> Personal -> Certificates" snap in,
however, there are two files created in this directory:

C:\Documents and Settings\All Users\Application
Data\Microsoft\Crypto\RSA\MachineKeys

I have used the "FindPrivateKey Tool"
(http://msdn2.microsoft.com/en-us/library/ms732026.aspx) to verify
that one of the files in the MachineKeys directory is in fact the
private key for the certificate, but I have no idea what that second
file represents! If I manually import this certificate using the
Certificates snap in only one file is created in the MachineKeys
directory.

The reason all of this is of concern is that I have found repeated
installation and uninstallation of this certificate eventually leaves
so many files in the MachineKeys directory that vague application
errors result in creating SSL channels using this certificate. Once I
clean out all the private key files, the application works fine again.

Thanks,
Luke

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to