From 4d0616395e9836b203e027d9efd736478707f242 Mon Sep 17 00:00:00 2001 From: Ben Rockwood Date: Wed, 23 Aug 2023 02:56:03 -0700 Subject: [PATCH] Changes to installer Signed-off-by: Ben Rockwood --- packages/msi/sign.bat | 11 -------- packages/msi/sign.ps1 | 15 ---------- public-code-signing.cer | 61 +++++++++++++++++++++++++---------------- 3 files changed, 38 insertions(+), 49 deletions(-) delete mode 100644 packages/msi/sign.bat delete mode 100644 packages/msi/sign.ps1 diff --git a/packages/msi/sign.bat b/packages/msi/sign.bat deleted file mode 100644 index 9bca9e0c..00000000 --- a/packages/msi/sign.bat +++ /dev/null @@ -1,11 +0,0 @@ -rem Create Certs -MakeCert -n "CN=Mondoo, O=Mondoo, L=SF, S=CA, C=USA" -r -h 0 -eku "1.3.6.1.5.5.7.3.3,1.3.6.1.4.1.311.10.3.13" -e 12/31/2100 -sv C:\MyKey.pvk C:\MyKey.cer - -rem Create a Personal Information Exchange (.pfx) file using Pvk2Pfx.exe -Pvk2Pfx -pvk MyKey.pvk -pi test -spc C:\MyKey.cer -pfx C:\MyKey.pfx -po test - -rem Sign package -SignTool sign -debug -a -fd SHA256 -f C:\MyKey.pfx -p test C:\dist\hello-agent.appx - -rem sign msi package -Signtool sign -debug -a -fd SHA256 -f C:\MyKey.pfx -p test C:\dist\hello-agent.msi \ No newline at end of file diff --git a/packages/msi/sign.ps1 b/packages/msi/sign.ps1 deleted file mode 100644 index 36fa7efe..00000000 --- a/packages/msi/sign.ps1 +++ /dev/null @@ -1,15 +0,0 @@ -param ( - [string]$Certificate = $(throw "-Certificate is required."), - [string]$Executable = $(throw "-Executable is required."), - [string]$Password = $(throw "-Password is required."), - [string]$ProgramName = $(throw "-ProgramName is required.") -) - -Set-StrictMode -Version Latest -$ErrorActionPreference = "Stop" - -$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition - -& 'C:\Program Files (x86)\Windows Kits\10\bin\10.0.20348.0\x64\signtool.exe' sign /d $ProgramName /f $Certificate /p $Password ` - /fd sha256 /tr http://timestamp.digicert.com /td sha256 /v ` - $Executable diff --git a/public-code-signing.cer b/public-code-signing.cer index e46f3661..5630ef18 100644 --- a/public-code-signing.cer +++ b/public-code-signing.cer @@ -1,24 +1,39 @@ -----BEGIN CERTIFICATE----- -MIID+DCCA36gAwIBAgIQDEIdg1QjUvYABwFA28gf0DAKBggqhkjOPQQDAzBkMQsw -CQYDVQQGEwJVUzEXMBUGA1UEChMORGlnaUNlcnQsIEluYy4xPDA6BgNVBAMTM0Rp -Z2lDZXJ0IEdsb2JhbCBHMyBDb2RlIFNpZ25pbmcgRUNDIFNIQTM4NCAyMDIxIENB -MTAeFw0yMjA3MjYwMDAwMDBaFw0yMzA4MjMyMzU5NTlaMGExCzAJBgNVBAYTAlVT -MRcwFQYDVQQIEw5Ob3J0aCBDYXJvbGluYTENMAsGA1UEBxMEQ2FyeTEUMBIGA1UE -ChMLTW9uZG9vLCBJbmMxFDASBgNVBAMTC01vbmRvbywgSW5jMHYwEAYHKoZIzj0C -AQYFK4EEACIDYgAEVAyibkorVuUZa4Grayxj4Aq+uvkFn/TPZPl0at3L1L2SH1OD -vFkaBn8fOQQzRYOd1YRMk13/1HvUyTpt3DMT61XcyK3HxCllEdsifTBhx7u5FCrX -p8Y+vI3m/uH+skCUo4IB9jCCAfIwHwYDVR0jBBgwFoAUm1+wNrqdBq4ZJ73AoCLA -i4s4d+0wHQYDVR0OBBYEFM7LC1NpfmXLoOGHiYI6Yc4VChtYMA4GA1UdDwEB/wQE -AwIHgDATBgNVHSUEDDAKBggrBgEFBQcDAzCBqwYDVR0fBIGjMIGgME6gTKBKhkho -dHRwOi8vY3JsMy5kaWdpY2VydC5jb20vRGlnaUNlcnRHbG9iYWxHM0NvZGVTaWdu -aW5nRUNDU0hBMzg0MjAyMUNBMS5jcmwwTqBMoEqGSGh0dHA6Ly9jcmw0LmRpZ2lj -ZXJ0LmNvbS9EaWdpQ2VydEdsb2JhbEczQ29kZVNpZ25pbmdFQ0NTSEEzOD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