Browse Source

Update Sign.ps1

pull/380/head
Dmitry Nefedov 2 years ago
committed by GitHub
parent
commit
616f403af1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Scripts/Sign.ps1

2
Scripts/Sign.ps1

@ -13,6 +13,8 @@ $Parameters = @{
} }
$authenticode = New-SelfSignedCertificate @Parameters $authenticode = New-SelfSignedCertificate @Parameters
Get-ChildItem -Path Cert:\LocalMachine\My
# Add the self-signed Authenticode certificate to the computer's root certificate store # Add the self-signed Authenticode certificate to the computer's root certificate store
# Create an object to represent the LocalMachine\Root certificate store # Create an object to represent the LocalMachine\Root certificate store
$rootStore = [System.Security.Cryptography.X509Certificates.X509Store]::new("Root","LocalMachine") $rootStore = [System.Security.Cryptography.X509Certificates.X509Store]::new("Root","LocalMachine")

Loading…
Cancel
Save