locked
cannot create temp certificate

    Question

  • Hi

    I'm trying to deploy c++ test app to another pc using temp certificate, but I'm getting error during the creation of the package. It turns out that temp certificate file included into project by default is empty. When attempted to recreate it via "Create Test Certificate" i get also an error - "Manifest Designer Could not import the certificate"

    Thanks

    Vlad


    1>     Creating library e:\Users\vla.000\documents\visual studio 2012\Projects\App2\Debug\App2\App2.lib and object e:\Users\vla.000\documents\visual studio 2012\Projects\App2\Debug\App2\App2.exp

    1>  App2.vcxproj -> e:\Users\vla.000\documents\visual studio 2012\Projects\App2\Debug\App2\App2.exe
    1>E:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(782,9): warning APPX0106: Loading certificate file 'App2_TemporaryKey.pfx' failed. Unspecified error
    1>E:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(782,9): warning APPX0106: 
    1>E:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(782,9): warning APPX0107: The certificate specified is not valid for signing. For more information about valid certificates, see http://go.microsoft.com/fwlink/?LinkID=241478.
    1>  App2 -> e:\Users\vla.000\documents\visual studio 2012\Projects\App2\AppPackages\App2\App2_1.0.0.0_Win32_Debug_Test\App2_1.0.0.0_Win32_Debug.appx
    1>  App2 -> e:\Users\vla.000\documents\visual studio 2012\Projects\App2\AppPackages\App2\App2_1.0.0.0_Win32_Debug_Test\App2_1.0.0.0_Win32_Debug.appxsym
    1>E:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(1103,9): error APPX0106: Loading certificate file 'App2_TemporaryKey.pfx' failed. Unspecified error
    1>E:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(1103,9): error APPX0106: 
    1>E:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(1103,9): error APPX0107: The certificate specified is not valid for signing. For more information about valid certificates, see http://go.microsoft.com/fwlink/?LinkID=241478.
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    ========== Package: 0 succeeded, 1 failed ===========

    Tuesday, June 5, 2012 11:17 PM

Answers

  • Are you logged into the OS using a Microsoft account? If so, try taking the account offline and then online again and see if that fixes the issue. You can do this by going to your User Settings under PC settings.

    • Marked as answer by Vladbph Wednesday, October 31, 2012 6:04 PM
    Wednesday, June 6, 2012 9:50 PM

All replies

  • Did you create your project using Blend? If so, can you try to package using Visual Studio and see if that works?

    Wednesday, June 6, 2012 1:07 AM
  • I dont use blend and i do use visual studio to create the package. Any clue what is happening?


    Wednesday, June 6, 2012 4:04 PM
  • This might be related to a known issue with cert creation with MakeCert.exe. Can you run the following on a command prompt and let me know if you can create the cert successfully?

    makecert test.cer

    Thanks.

    Wednesday, June 6, 2012 6:53 PM
  • Nope, it says failed....
    Wednesday, June 6, 2012 9:41 PM
  • Are you logged into the OS using a Microsoft account? If so, try taking the account offline and then online again and see if that fixes the issue. You can do this by going to your User Settings under PC settings.

    • Marked as answer by Vladbph Wednesday, October 31, 2012 6:04 PM
    Wednesday, June 6, 2012 9:50 PM