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.