The Computer Oracle

Import certificates using command line on Windows

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Dreamlands

--

Chapters
00:00 Import Certificates Using Command Line On Windows
00:42 Accepted Answer Score 51
00:58 Answer 2 Score 2
01:13 Thank you

--

Full question
https://superuser.com/questions/1506440/...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#powershell #ssl #certificate

#avk47



ACCEPTED ANSWER

Score 51


If you are on a current version of Windows, you can use PowerShell cmdlets:

Import-Certificate -FilePath "C:\CA-PublicKey.Cer" -CertStoreLocation Cert:\LocalMachine\Root

otherwise use certutil:

certutil.exe -addstore root c:\capublickey.cer



ANSWER 2

Score 2


certutil -p "**password**" -importpfx Root "**ca-File.p12**" worked for me from cmd line.