DJ Mogarych
04-04-2023, 22:14
$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2("C:\folder\mycertificate.cer")
$rootStore = Get-Item cert:\LocalMachine\Root
$rootStore.Open("ReadWrite")
$rootStore.Add($cert)
$rootStore.Close()
https://www.appveyor.com/docs/deployment/local/#installing-self-signed-ssl-certificate-to-a-website
https://social.technet.microsoft.com/Forums/lync/en-US/aac8cfcd-6bd2-423f-895b-a6612459eb16/importcertificate-without-confirmation-ignore-security-warnings?forum=winserverpowershell
$rootStore = Get-Item cert:\LocalMachine\Root
$rootStore.Open("ReadWrite")
$rootStore.Add($cert)
$rootStore.Close()
https://www.appveyor.com/docs/deployment/local/#installing-self-signed-ssl-certificate-to-a-website
https://social.technet.microsoft.com/Forums/lync/en-US/aac8cfcd-6bd2-423f-895b-a6612459eb16/importcertificate-without-confirmation-ignore-security-warnings?forum=winserverpowershell