Skip to content

Creating a self assigned code signed Certificate for MSIX packages

Ryan Mangan edited this page Mar 1, 2021 · 4 revisions

Here is an example of creating a Self-assigned code sign certificate.

New-SelfSignedCertificate -Type Custom -Subject "CN=RMTIBLOG, O=Ryanmangansitblog, C=GB" -KeyUsage DigitalSignature -FriendlyName "Your friendly name goes here" -CertStoreLocation "cert:\CurrentUser\my" -TextExtension @("2.5.29.37={text}1.3.6.1.5.5.7.3.3", "2.5.29.19={text}")

You can convert to PFX using the following Powershell Script

$password = ConvertTo-SecureString -String <Your Password> -Force -AsPlainText Export-PfxCertificate -cert "Cert:\CurrentUser\My\<Certificate Thumbprint>" -FilePath <FilePath>.pfx -Password $password

Scripts:


Create Self assigned certificate.

Convert to PFX script