Android Question HttpJob with HTTPS urls

Discussion in 'Android Questions' started by mitobobo, Jul 22, 2015.

  1. mitobobo

    mitobobo Member Licensed User

    Hello everyone :)

    I installed an SSL certificate on my domain, which is great, even though now every HttpJob.PostString fail. I updated the url from http://test.org to https://test.org without success.
    The certificate was issued by an SSL Certificate Authority.

    Any idea why? :(

    Thank you very much in advance for your precious help!
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Which error do you get? The device probably doesn't recognize your server certificate.

    You can force it to allow all certificates by changing hc.Initialize to hc.InitializeAcceptAll (use the source code of HttpUtis2 instead of the library).
     
    mitobobo likes this.
  3. mitobobo

    mitobobo Member Licensed User

    You made my day, thank you so much! The problem was that the device didn't accept the certificate.
     
Loading...