During publish, error "this certificate is not trusted on this pc"

Peri Hartman 21 Reputation points
2021-02-02T15:28:41.21+00:00

I'm trying to publish my app so I can test it on another computer. I'm getting an error

"This certificate is not trusted on this PC. If you plan to install this app, import this certificate to the trusted certificate store."

Clicking the "trust" button seems to have no effect. I have not figured out any other way to import to the certificate store.

I have tried following the instructions to manually create a certificate but run into the same problem when trying to use it.

If I continue the process and build the install package, it will not install on my computer. I get an installation error

"this app package is not signed with a trusted certificate."

I was able to publish the app to the store but I can't find it in the store. Even if I could, that process is too lengthy to be practical during test & debug.

I'm really stumped. What do I need to do to get a trusted certificate for my test & debug stage. I realize I can buy one, which I presume I'll do if I create an app for general distribution. But that doesn't seem like the right choice at the moment.

Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
337 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dylan Zhu-MSFT 6,406 Reputation points
    2021-02-03T05:29:57.04+00:00

    Hi PeriHartman,

    Please follow these steps to add the certificate to the local computer certificate trust:

    1. In File Explorer, right-click on the app package, and in the pop-up context menu select Properties.
    2. In the Properties dialog, select the Digital Signatures tab.
    3. In the Signature list, select the signature and then click the Details button.
    4. In the Digital Signature Details dialog, click the View Certificate button.
    5. In the Certificate dialog, click the Install Certificate… button.
    6. In the Certificate Import Wizard, select Local Machine and then click Next. You will need to grant administrator privileges to continue.
    7. Select Place all certificates in the following store and browse to the Trusted People store.
    8. Click Next, then click Finish to complete the wizard.

    More information: https://video2.skills-academy.com/en-us/windows/win32/appxpkg/how-to-troubleshoot-app-package-signature-errors#remarks

    Best Regards,
    Dylan


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our **documentation to enable e-mail notifications if you want to receive the related email notification for this thread.**