Tired of wading throug MMC jungles, I need a way to import a given .cer
file (which contains just a public key) into machine-wide certificate store (don't know how is it called in English since I'm using a localized version of Windows) into "Personal Certificates" folder. Both cmd.exe
or PowerShell versions will be fine.
Import .cer certificate from Windows command line
certificatecommand-line-interface
Related Topic
- Why can’t I export a certificate that I imported as exportable
- How to work around problems with certificate configuration in Remote Desktop Services
- Why is Windows 2012 R2 not trusting the self-signed certificate
- How to give a user access to the Certificate Store on Windows Server 2012
- SSL Certificate Issues – How to Fix Certificate Not Appearing in MMC After Importing
Best Answer
Powershell solution, using System.Security.Cryptograpy.X509Certificates:
Sorry for all the full namespace specifications, but there's no "using" directive in PowerShell.