Skip to content

Instantly share code, notes, and snippets.

@nickcharlton
Created July 25, 2022 17:15
Show Gist options
  • Save nickcharlton/92cc4c0687ac71be616976837b458a22 to your computer and use it in GitHub Desktop.
Save nickcharlton/92cc4c0687ac71be616976837b458a22 to your computer and use it in GitHub Desktop.
Checking for valid MSIX certificates using Visual Studio

Checking a certificate will work is a bit of an awkward one to solve, but a built-in tool will do it:

 PS> Set-Location "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\CommonExtensions\Microsoft\TailoredProjectServices\"
 PS> .\VSCertificateChecker.exe -f "C:\Users\NickCharlton\Documents\Certificates\DevelopmentTesting.pfx" -t msix
The file ALBAIKDevelopmentTesting.pfx is password-protected.
Enter password: ************************

Certificate Details:
        Private Key Found: True
        Valid From: 25/07/2022 16:56:35
        Valid Until: 25/07/2023 17:16:35
        X509 Extensions:
                X509KeyUsageExtension:
                        Digital Signature Key Usage: DigitalSignature
                X509EnhancedKeyUsageExtension:
                        Enhanced Key Usages:
                                Id-Kp Code Signing (1.3.6.1.5.5.7.3.3)
                X509BasicConstraintsExtension:
                        Certificate Authority: False
                        Object Identifier: 2.5.29.19
Certificate Status:
        The certificate is valid for signing.

https://developercommunity.visualstudio.com/t/cannot-use-local-ca-issued-certificate-with-uwp-ap-1/1014374

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment