]> us-delaporte.pagekite.me Git - dotfiles.git/commitdiff
Don't need this anymore.
authorEdward Delaporte <delaport@illinois.edu>
Mon, 8 Feb 2021 23:34:26 +0000 (17:34 -0600)
committerEdward Delaporte <delaport@illinois.edu>
Mon, 8 Feb 2021 23:34:26 +0000 (17:34 -0600)
setup/codesign.ps1 [deleted file]

diff --git a/setup/codesign.ps1 b/setup/codesign.ps1
deleted file mode 100644 (file)
index 7f44f10..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<#
-.SYNPOSIS
-
-Commands to maintain a local code singing cert.
-
-#>
-$certName = "Local Code Sign Cert"
-
-function New-CodeSignCert {
-
-$cert = New-SelfSignedCertificate -CertStoreLocation Cert:\CurrentUser\My -Type CodeSigningCert -Subject "$certName"
-
-}
-
-function Get-CodeSignCert {
-       return Get-ChildItem -Path Cert:\CurrentUser\My | ? Subject -EQ "CN=$certName"
-}
-
-function Set-CodeSignCert {
-
-       $cert = Get-CodeSignCert
-       Move-Item -Path $cert.PSPath -Destination "Cert:\CurrentUser\Root"
-}
-
-function Invoke-SignScript {
-       param(
-               [string]$Path
-       )
-       $cert = Get-CodeSignCert
-       Set-AuthenticodeSignature -FilePath $Path -Certificate $cert
-}
-
-
-New-CodeSignCert
-Set-CodeSignCert