Skip to content

Commit 0b99c0d

Browse files
committed
Self signed certificate
1 parent 8a06763 commit 0b99c0d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ jobs:
88
run: Invoke-WebRequest https://github.com/duncanthrax/scream/releases/download/4.0/Scream4.0.zip -OutFile Scream4.0.zip
99
- shell: powershell
1010
run: Expand-Archive -Path Scream4.0.zip -DestinationPath Scream
11+
- run: openssl req -batch -verbose -x509 -newkey rsa -keyout ScreamCertificate.pvk -out ScreamCertificate.cer -text -nodes -addext extendedKeyUsage=codeSigning
12+
- run: 'openssl pkcs12 -export -nodes -in ScreamCertificate.cer -inkey ScreamCertificate.pvk -out ScreamCertificate.pfx -passout pass:'
13+
- uses: ilammy/msvc-dev-cmd@v1
14+
- run: signtool sign /v /fd SHA256 /f ScreamCertificate.pfx Scream\Install\driver\x64\Scream.sys
1115
- shell: powershell
12-
run: Import-Certificate -FilePath Scream\Install\driver\x64\Scream.cat -CertStoreLocation Cert:\LocalMachine\TrustedPublisher
16+
run: Import-Certificate -FilePath ScreamCertificate.cer -CertStoreLocation Cert:\LocalMachine\root
1317
- shell: powershell
1418
run: Install-Module -Name PShot -AcceptLicense -Force
1519
- shell: powershell

0 commit comments

Comments
 (0)