i'm trying to use a custom self-signed certificate for a UWP app. I followed the instructions in: https://learn.microsoft.com/en-us/windows/uwp/packaging/create-certificate-package-signing
As first step i manually changed the publisher in appxmanifest to match our company with all data, not only CN as the test certificate states.
After that i created a self-signed certificate using powershell as described. Even if not exporting the certificate to a file, it should be in my certificate store now. But when trying to selected a certificate from certificate store VisualStudio says there are no certificates that meet the application criteria.
I even made sure, that the enhanced properties are set correctly using certmgr.
What am i doing wrong?
After you create the .pfx file, the certificate is still not trusted by the local computer for deployment of app packages until you install it into the trusted certificates store of the local computer. You can refer to the following steps to install it into the trusted certificates store.
1. Find the certificate file and double click.
2. Select
Local Machine
option.3. If your certificate has password, type the password for it.
4. Select
Automatically select the certificate store base on the type ofcertificate
option .5. Finish
Usage
Double click UWP project
Package.appcmanifest
->Packaging button -> Choose Certificate -> Pick From certificate store. You will see the certificate that has been installed into certificates store.