-
Notifications
You must be signed in to change notification settings - Fork 12
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:
Copyright 2021 - 2023 Ryanmangansitblog ltd and Ryan Mangan. Ryanmangansitblog.com