locked
The certificate specified is invalid because it is expired or has another issue ERROR

    Question

  • I am trying to add a certificate to a windows 8.1 store app, but it throws this error:

    we tried a certificate generated from third party CA and another one generated from our local CA, both gives the same error.

    it's not expired and every thing in the certificate looks like the old one (the one I am trying to replace because it expires very soon).

    Do you have any idea what is the issue here? 


    Tariq

    Tuesday, December 02, 2014 8:33 PM

Answers

All replies

  • Does the certificate have a private key? Also, can you try exporting a certificate from your existing certificate set (certificates.mmc) and see if that works? It might be a problem with your installation.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Wednesday, December 03, 2014 3:19 PM
    Moderator
  • * Does the certificate have a private key? Yes it does and I export it with the cert

    * can you try exporting a certificate from your existing certificate set (certificates.mmc) and see if that works? It didn't work, gives me same error.

    It might be a problem with your installation: I tried this certificate in different machines with test App and it gives the same error, Do you mean a problem with the certificate itself?

    * I can sent you the cert, if you want to duplicate it, it's really easy to duplicate.

    Thanks for the help.


    Tariq

    Wednesday, December 03, 2014 3:34 PM
  • Based on the screen shot it looks like you're trying to set the App package signing certificate.

    There are certain requirements that need to be met when generating a singing certificate for Windows 8.1 Side Loading deployment. 

    Check out these blogs:

    http://blogs.msdn.com/b/wsdevsol/archive/2014/01/29/signing-windows-8-1-applications-using-an-internal-code-signing-certificate-from-windows-server-2008-r2.aspx

    http://blogs.msdn.com/b/mvpawardprogram/archive/2014/03/24/side-loading-deployment-of-windows-store-apps-in-enterprises-step-by-step.aspx


    Eric Fleck, Windows Store and Windows Phone Developer Support. If you would like to provide feedback or suggestions for future improvements to the Windows Phone SDK please go to http://wpdev.uservoice.com/ where you can post your suggestions and/or cast your votes for existing suggestions.

    Wednesday, December 03, 2014 5:52 PM
    Moderator