Skip to content

Commit e9d56e9

Browse files
committed
Self signed certificate
1 parent 8a06763 commit e9d56e9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@ 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 -nodes -addext extendedKeyUsage=codeSigning
12+
- run: openssl x509 -in ScreamCertificate.cer -text
13+
- run: 'openssl pkcs12 -export -nodes -in ScreamCertificate.cer -inkey ScreamCertificate.pvk -out ScreamCertificate.pfx -passout pass:'
14+
- uses: ilammy/msvc-dev-cmd@v1
15+
- run: signtool sign /v /fd SHA256 /f ScreamCertificate.pfx Scream\Install\driver\x64\Scream.sys
1116
- shell: powershell
12-
run: Import-Certificate -FilePath Scream\Install\driver\x64\Scream.cat -CertStoreLocation Cert:\LocalMachine\TrustedPublisher
17+
run: Import-Certificate -FilePath ScreamCertificate.cer -CertStoreLocation Cert:\LocalMachine\root
1318
- shell: powershell
1419
run: Install-Module -Name PShot -AcceptLicense -Force
1520
- shell: powershell

0 commit comments

Comments
 (0)