Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-3700

Aerogear Android lib cannot establish secure HTTPS connection to UPS using self-signed certificate

    XMLWordPrintable

Details

    • Hide

      Create an Android application and try to register the device on Unified Push Server using HTTPS.

      Show
      Create an Android application and try to register the device on Unified Push Server using HTTPS.

    Description

      There is a problem with establishing secure HTTPS connection to Unified Push Server from Android applications. The problem occurs if the certificate is self-signed.

      Registration of a device on UPS produces following error: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

      The workaround is to create a custom trust manager in your Android application.

      More information: http://developer.android.com/training/articles/security-ssl.html#CommonProblems

      Attachments

        Activity

          People

            Unassigned Unassigned
            pstribny Petr Stribny (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: