Android Question connect with https

Gianluca Esposito

Member
Licensed User
Longtime User
hi,
I need to connect via https.
I get the following error:

Error: javax.net.ssl.SSLPeerUnverifiedException: No peer certificate

How can I fix?
Thanks


B4X:
Dim jobPcDaServire As HttpJob
    Try
       
        jobPcDaServire.Initialize("ElencoPcDaServire", Me)
       
        jobPcDaServire.Download2(IndirizzoServerWeb & "auth.php", _
        Array As String("r","connect","mvc","864cbd27fe32476","huk","ff1b39783e4128eb79e2cef38b49f926","imei","860041020949"))
    Catch
        Log(LastException)
    End Try
 

DonManfred

Expert
Licensed User
Longtime User
The domain does not have an SSL certificate it seems...
 
Upvote 0

Gianluca Esposito

Member
Licensed User
Longtime User
This error means that your device doesn't recognize the site certificate. You can modify HttpUtils2Service and change hc.Initialize to hc.InitializeAcceptAll.
hi,
This way it works.
Now the problem is that the link

https://www.cartabiancaclub.com/wp-...nca/authtemp.php?r=connect&mvc=x&huk=y&imei=z

returns the following code:

HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head>
  <meta charset="utf-8">
  <title>Carta Bianca Club ... anima il tuo shopping! &raquo; Carta Bianca Club</title>
  <meta class="viewport" name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">

  <!-- Favicon -->
  <!--<link rel="shortcut icon" href = "https://www.cartabiancaclub.com/template/img/favicon.ico">-->
  <!-- Font -->
  <link href='https://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900,900italic' rel='stylesheet' t......

So I can not process arrays json!

while on the web:

HTML:
<html><head>
<meta http-equiv="content-type" content="text/html; charset=windows-1252"></head><body>{"response":0,"receipt":0,"error":188}</body></html>

Thanks
 
Upvote 0
Top