The "batch" file (cmd) above in Option 3 (https://docs.microsoft.com/en-us/visualstudio/install/install-certificates-for-visual-studio-offline#option-3---install-certificates-as-part-of-a-scripted-deployment-of-visual-studio) is using a dependency (certmgr.exe) that you only have on your machine, after you have installed Visual Studio. Since this is documentation for installing Visual Studio, OBVIOUSLY you do not yet have this tool thus you cannot use that script to install the certificates. Its a chicken and egg problem. Please rewrite Option 3 to use built in OOTB PowerShell instead of relying on a Visual Studio tool!
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@brettjacobson Thanks for your feedback; we appreciate it! Your request is on record and in the queue. We'll report back on its status, soon.
I'm not sure how correct this is, but this is what I'm using
Import-PfxCertificate -FilePath .\certificates\manifestSignCertificates.p12 -CertStoreLocation Cert:\LocalMachine\CA
Import-PfxCertificate -FilePath .\certificates\manifestSignCertificates.p12 -CertStoreLocation Cert:\LocalMachine\Root
Import-PfxCertificate -FilePath .\certificates\manifestCounterSignCertificates.p12 -CertStoreLocation Cert:\LocalMachine\CA
Import-PfxCertificate -FilePath .\certificates\manifestCounterSignCertificates.p12 -CertStoreLocation Cert:\LocalMachine\Root
Import-PfxCertificate -FilePath .\certificates\vs_installer_opc.SignCertificates.p12 -CertStoreLocation Cert:\LocalMachine\CA
Import-PfxCertificate -FilePath .\certificates\vs_installer_opc.SignCertificates.p12 -CertStoreLocation Cert:\LocalMachine\Root
@tydunkel FYI on this.
@tydunkel A quick reminder of this issue; we'll want to add some PowerShell scripts to the page.
@tydunkel A quick reminder of this issue; we'll want to add some PowerShell scripts to the page.
@TerryGLee thanks, we have this on our backlog and will update in the near future.
The doc has been updated to use certutil.exe which ships with Windows. #please-close
Most helpful comment
The doc has been updated to use certutil.exe which ships with Windows. #please-close