First_Time_Visual_Studio_Setup - nasa/gunns GitHub Wiki
If you are using Visual Studio to build a GunnShow project or run it in debug mode, there is a Windows certificate you need in your personal certificates folder. If you are missing this certificate, you’ll get build errors like these in Visual Studio:
> “Cannot import the following key file: ….”
What we’ve done in the past is simply copy the same certificate from one developer to another. It originated with Christopher Motl and we continue to re-copy his certificate when needed. The certificate is named WIN-R7Q82UI3QTV\Christopher Motl
Here is the MS help page for importing & exporting certificates:
http://windows.microsoft.com/en-us/windows/import-export-certificates-private-keys#1TC=windows-7
As the user who will share their key with a new user:
- Open the Windows certificate manager application: from the Start button, search for certmgr.msc and run it. This certificate appears in the user’s Personal/Certificates folder.
- Find the key, right-click on it, select All Tasks > Export… this opens the Certificate Export Wizard.
- Next > “Yes, export the private key” > Next > Next > (enter a password, we suggest “gunnshow”) > Next > (browse for a location to save it as that can be shared with another user, we suggest C:\Users\Public\Public Documents\gunnshow.pfx) > Next > Finish. You should get a successful export message.
As the user who needs the key:
- Open the Windows certificate manager application (see above).
- Select your Personal folder.
- From the Actions menu, select All Takss > Import. This opens the Certificate Import Wizard > Next
- Browse to the exported certificate. It should be in the .pfx format
- Supply the private key password the exporter user chose. De-select the “Enable strong private key protection…” box > Next.
- Select “Place all certificates in the following store: Personal” > Next > Finish
The key should appear in your Personal/Certificates folder. You can now close the certmgr app. This should get rid of those Visual Studio build errors.