microsoft / xdp-for-windows

XDP speeds up networking on Windows
MIT License
371 stars 41 forks source link

test sign installer #623

Closed mtfriesen closed 3 months ago

mtfriesen commented 3 months ago

test sign the MSI with the same cert that signed xdp.sys, so that the MSI's cert can be extracted and installed prior to installing the MSI itself.

$CertFileName = 'xdp.cer'
Get-AuthenticodeSignature 'xdp.msi' | Select-Object -ExpandProperty SignerCertificate | Export-Certificate -Type CERT -FilePath $CertFileName
Import-Certificate -FilePath $CertFileName -CertStoreLocation 'cert:\localmachine\root'
Import-Certificate -FilePath $CertFileName -CertStoreLocation 'cert:\localmachine\trustedpublisher'