Dmitry Nefedov
11 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
Scripts/Sign.ps1
|
@ -1,5 +1,5 @@ |
|
|
# Sign all scripts in folder recursively by a self-signed certificate |
|
|
# Sign all scripts in folder recursively by a self-signed certificate |
|
|
$CertName = "Sophia Project" |
|
|
$CertName = "Team Sophia" |
|
|
$FolderPath = "src" |
|
|
$FolderPath = "src" |
|
|
$ExtensionsToSearchIn = @(".ps1", ".psm1", ".psd1") |
|
|
$ExtensionsToSearchIn = @(".ps1", ".psm1", ".psd1") |
|
|
# Get-ChildItem -Path Cert:\LocalMachine\My, Cert:\CurrentUser\My | Where-Object -FilterScript {$_.Subject -eq "CN=$CertName"} | Remove-Item |
|
|
# Get-ChildItem -Path Cert:\LocalMachine\My, Cert:\CurrentUser\My | Where-Object -FilterScript {$_.Subject -eq "CN=$CertName"} | Remove-Item |
|
|