PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → [WM20 - android] Error : No peer Certificate
[WM20 - android] Error : No peer Certificate
Débuté par CCC2, 04 oct. 2015 12:51 - 4 réponses
Posté le 04 octobre 2015 - 12:51
Hi ,

i get error "No peer Certificate" when calling HTTPSendForm() on android.

how do I resolve this ?
Posté le 05 octobre 2015 - 06:23
when I test on WD20 i get this error

"name on security certificate is incorrect or does not match the selected site"

it work after i add HTTP.ignoreError

HTTP.IgnoreError = httpIgnoreInvalidCertificateName
HTTPCreateForm("FORM")

but when I try on WM20-android , it doesn't work
Posté le 06 octobre 2015 - 07:10
Yes , I found the solution. :rp:
Posté le 06 octobre 2015 - 09:28
Which is?
We all want to know that...
Posté le 06 octobre 2015 - 10:05
Quote
Arie Mars

Which is?


We all want to know that...

the error is cause by self sign certificate . if you using valid certificate , you won't get this error .

problem ?
what if you need to use self sign certificate for your internal website use .

solution ?
- create your own private certificate authority
after you create your root certificate and self-sign it , copy the root certificate (not the key) to sd-card .

- from android device go to setting -> security -> credential storage -> install certificate from sd-card .

once install , your app will work.