Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $certdir = dir "Cert:\LocalMachine\root"
- # Update the binding with the certificate
- dir "Cert:\LocalMachine\root"
- dir "IIS:\SslBindings"
- $cert = "IIS:\SslBindings\0.0.0.0!443"
- # Grab the Certificate thumbprint
- $certThumb = Get-ChildItem -Path "Cert:\LocalMachine\root" | where-Object {$_.subject -like 'CN=PyrotekSACA*'} | Select-Object -ExpandProperty Thumbprint
- # Grab the Certificate and update the binding
- Remove-Item -Path $cert
- Get-Item cert:\localmachine\root\$certThumb | New-Item -Type Directory 0.0.0.0!443
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement