Add import script
This commit is contained in:
parent
c16b083b99
commit
fe6ff27ffa
13
MainServer/BundledCertificates/Import.ps1
Normal file
13
MainServer/BundledCertificates/Import.ps1
Normal file
@ -0,0 +1,13 @@
|
||||
param (
|
||||
[switch]$WhatIf = $false
|
||||
)
|
||||
$certsInMy = Get-ChildItem Cert:\LocalMachine\My
|
||||
$certsInMy | Where-Object {$_.Issuer -match "Taito Arcade Machine CA"} | Remove-Item -WhatIf:$WhatIf
|
||||
|
||||
$certsInRoot = Get-ChildItem Cert:\LocalMachine\Root
|
||||
$certsInRoot | Where-Object {$_.Issuer -match "Taito Arcade Machine CA"} | Remove-Item -WhatIf:$WhatIf
|
||||
|
||||
Get-ChildItem -Path root.pfx | Import-PfxCertificate -CertStoreLocation Cert:\LocalMachine\My -WhatIf:$WhatIf
|
||||
Get-ChildItem -Path cert.pfx | Import-PfxCertificate -CertStoreLocation Cert:\LocalMachine\My -WhatIf:$WhatIf
|
||||
|
||||
Get-ChildItem -Path root.pfx | Import-PfxCertificate -CertStoreLocation Cert:\LocalMachine\Root -WhatIf:$WhatIf
|
Loading…
x
Reference in New Issue
Block a user