2 Replies Latest reply on May 16, 2017 12:02 PM by danielg66148613

    Windows Build fails without error message

    danielg66148613

      After lots of hours of trial and frustration I succeeded in creating a Windows 10 .pfx file for signing my app.

       

      Unfortunately the Phonegap Build still fails for unknown reason. As far as I can see there is no error message in the log (see below). Does anyone know the reason for my build to fail?

       

      Thanks a lot,

       

      Daniel

       

       

      App-ID

      67116

       

      Log:

      Build Date: 2017-05-13 06:32:05 +0000

      ================ Certificate 0 ================

      ================ Begin Nesting Level 1 ================

      Element 0:

      Serial Number: 165271730641839a47450d2974dc62d6

      Issuer: CN=Daniel Gr�fe

      NotBefore: 5/13/2017 6:18 AM

      NotAfter: 5/13/2018 6:38 AM

      Subject: CN=Daniel Gr�fe

      Signature matches Public Key

      Root Certificate: Subject matches Issuer

      Cert Hash(sha1): 15 0b f8 62 fe bc ce 28 a3 6a bf dc 80 4f 8b 7b 70 15 3a fa

      ---------------- End Nesting Level 1 ----------------

        Provider = Microsoft Software Key Storage Provider

      Private key is NOT plain text exportable

      Encryption test passed

      CertUtil: -dump command completed successfully.

      --------------------------------------------------------------------------------

      PLUGIN OUTPUT

      --------------------------------------------------------------------------------

      --------------------------------------------------------------------------------

      COMPILE OUTPUT

      --------------------------------------------------------------------------------

      Certificate "Daniel Gr�fe" added to store.

       

      CertUtil: -importPFX command completed successfully.

      My "Personal"

      Deleting Certificate 1: CN=Daniel Gr�fe:150bf862febcce28a36abfdc804f8b7b70153afa

      CertUtil: -delstore command completed successfully.

       

      Powershell commands for pfx File creation

      New-SelfSignedCertificate -Type Custom -TextExtension @("2.5.29.37={text}1.3.6.1.5.5.7.3.3,1

      .3.6.1.4.1.311.10.3.13") -Subject "CN=Daniel Gräfe" -KeyUsage DigitalSignature -FriendlyName "Daniel Gräfe" -CertStoreLo

      cation "Cert:\LocalMachine\My"

       

      $pwd = ConvertTo-SecureString -String "<passphrase>" -Force -AsPlainText

       

      Export-PfxCertificate -cert "Cert:\LocalMachine\My\<certid>"

      -FilePath .\certicerto.pfx -Password $pwd

        • 1. Re: Windows Build fails without error message
          ryanskihead Adobe Employee

          Can you try doing a build without the brackets in the app name?

          1 person found this helpful
          • 2. Re: Windows Build fails without error message
            danielg66148613 Level 1

            Thanks for your hint which brought the build one step further :

            Though still not succeeding in building the windows app, now there is an error message at least.

             

             

            Build Date: 2017-05-16 18:56:15 +0000

            ================ Certificate 0 ================

            ================ Begin Nesting Level 1 ================

            Element 0:

            Serial Number: 429650235b27ef8e485df78fe529be89

            Issuer: CN=3FA95033-ECB0-4493-AB2A-043529CD39D8

            NotBefore: 5/13/2017 7:56 AM

            NotAfter: 5/13/2018 8:16 AM

            Subject: CN=3FA95033-ECB0-4493-AB2A-043529CD39D8

            Signature matches Public Key

            Root Certificate: Subject matches Issuer

            Cert Hash(sha1): e8 93 3f 5a 33 56 ff 71 b0 04 79 5a 72 d3 fc b0 0f 4e 0b f0

            ---------------- End Nesting Level 1 ----------------

              Provider = Microsoft Software Key Storage Provider

            Private key is NOT plain text exportable

            Encryption test passed

            CertUtil: -dump command completed successfully.

            --------------------------------------------------------------------------------

            PLUGIN OUTPUT

            --------------------------------------------------------------------------------

            --------------------------------------------------------------------------------

            COMPILE OUTPUT

            --------------------------------------------------------------------------------

            Certificate "Daniel Gr�fe" added to store.

             

            CertUtil: -importPFX command completed successfully.

            My "Personal"

            Deleting Certificate 0: CN=3FA95033-ECB0-4493-AB2A-043529CD39D8:e8933f5a3356ff71b004795a72d3fcb00f4e0bf0

            CertUtil: -delstore command completed successfully.

            Building project: C:\cygwin\tmp\gimlet\67116\project\CordovaApp.Windows10.jsproj

            Configuration : release

            Platform : x86

              Patching 10 in prebuild event...

              Injected base.js reference to the www/index.html

              Removing /( *)(<script\s+(?:type="text\/javascript"\s+)?src="\/\/Microsoft.WinJS.2.0\/js\/base.js">\s *<\/script>)(\s*)/ from www/index.html

              Removing /( *)(<script\s+(?:type="text\/javascript"\s+)?src="\/\/Microsoft.Phone.WinJS.2.1\/js\/base. js">\s*<\/script>)(\s*)/ from www/index.html

            C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(1854 ,5): warning APPX0107: The certificate specified is not valid for signing. For more information about valid certificates, see http://go.microsoft.com/fwlink/?LinkID=241478. [C:\cygwin\tmp\gimlet\67116\project\CordovaApp.Windows10.jsproj]

              CordovaApp.Windows10 -> C:\cygwin\tmp\gimlet\67116\project\AppPackages\CordovaApp.Windows10_3.8.0.0_x86_Test\Cord ovaApp.Windows10_3.8.0.0_x86.appx

            C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(2465 ,5): error APPX0107: The certificate specified is not valid for signing. For more information about valid certificates, see http://go.microsoft.com/fwlink/?LinkID=241478. [C:\cygwin\tmp\gimlet\67116\project\CordovaApp.Windows10.jsproj]