Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-3314

Android: validatesSecureCertificate not recognized

    Details

      Description

      {html}<div><p><strong>Problem</strong> Regression from 1.5.1</p>
      <p>validatesSecureCertificate = false is no longer recognized in
      the 1.6 build.<br></p>
      <p>Tested using 1.5.1 and 1.6 and on device APIs 2.2.</p>
      <p><strong>Device Error Output</strong></p>
      <p>E/TiHttpClient( 820): (TiHttpClient-3) [0,512855] HTTP Error
      (javax.net.ssl.SSLException): Not trusted server certificate<br>
      E/TiHttpClient( 820): javax.net.ssl.SSLException: Not trusted
      server certificate<br>
      E/TiHttpClient( 820): at
      org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:371)<br>
      E/TiHttpClient( 820): at
      org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:92)<br>
      E/TiHttpClient( 820): at
      org.apache.http.conn.ssl.SSLSocketFactory.createSocket(SSLSocketFactory.java:381)<br>
      E/TiHttpClient( 820): at
      org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:164)<br>
      E/TiHttpClient( 820): at
      org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)<br>
      E/TiHttpClient( 820): at
      org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)<br>
      E/TiHttpClient( 820): at
      org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:348)<br>
      E/TiHttpClient( 820): at
      org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)<br>
      E/TiHttpClient( 820): at
      org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:653)<br>
      E/TiHttpClient( 820): at
      org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:637)<br>
      E/TiHttpClient( 820): at
      ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1000)<br>
      E/TiHttpClient( 820): at java.lang.Thread.run(Thread.java:1096)<br>
      E/TiHttpClient( 820): Caused by:
      java.security.cert.CertificateException:
      java.security.cert.CertPathValidatorException: Could not validate
      certificate signature.<br>
      E/TiHttpClient( 820): at
      org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:168)<br>
      E/TiHttpClient( 820): at
      org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:366)<br>
      E/TiHttpClient( 820): ... 11 more<br>
      E/TiHttpClient( 820): Caused by:
      java.security.cert.CertPathValidatorException: Could not validate
      certificate signature.<br>
      E/TiHttpClient( 820): at
      org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi.engineValidate(PKIXCertPathValidatorSpi.java:342)<br>
      E/TiHttpClient( 820): at
      java.security.cert.CertPathValidator.validate(CertPathValidator.java:202)<br>
      E/TiHttpClient( 820): at
      org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:164)<br>
      E/TiHttpClient( 820): ... 12 more<br>
      E/TiHttpClient( 820): Caused by: java.security.SignatureException:
      Signature was not verified.<br>
      E/TiHttpClient( 820): at
      org.apache.harmony.security.provider.cert.X509CertImpl.fastVerify(X509CertImpl.java:601)<br>
      E/TiHttpClient( 820): at
      org.apache.harmony.security.provider.cert.X509CertImpl.verify(X509CertImpl.java:544)<br>
      E/TiHttpClient( 820): at
      org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi.engineValidate(PKIXCertPathValidatorSpi.java:337)<br>
      E/TiHttpClient( 820): ... 14 more</p>
      <p><strong>Testing File</strong></p>
      <p>See reference ticket for testing file due to private data.</p>
      <p>Must create a distribution file and install on device to
      replicate issue.</p>
      <p><a href=
      "http://developer.appcelerator.com/helpdesk/view/76333">http://developer.appcelerator.com/helpdesk/view/76333</a></p></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              dthorp Don Thorp
              Reporter:
              aleard Alan Leard
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-2847
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration