nativescript-community / https

Secure HTTP client with SSL pinning for Nativescript - iOS/Android
https://nativescript-community.github.io/https/
Other
50 stars 42 forks source link

SSLPeerUnverifiedException #13

Open kentplaza opened 7 years ago

kentplaza commented 7 years ago

Need some assist. Why when i enabled the SSL pinning and Test HTTPS, always getting javax.net.ssl.SSLPeerUnverifiedException error message as below:

JS: Https.request error javax.net.ssl.SSLPeerUnverifiedException: Hostname xxxx.azurewebsites.net not verified: JS: certificate: sha256/nrmpk4ZI3wbRBmUZIT5aKAgP0LlKHRgfA2Snjzeg9iY= JS: DN: CN=.azurewebsites.net JS: subjectAltNames: [.azurewebsites.net, .scm.azurewebsites.net, .azure-mobile.net, *.scm.azure-mobile.net]

while disabled SSL, it called to api sucessfully.

Any idea?

thanks

roblav96 commented 7 years ago

@kentplaza it looks like you're using a hostname xxxx.azurewebsites.net which is not in the list of verified names.

kentplaza commented 7 years ago

@roblav96 I see, but if i double click on the cer cert. I saw the subject is *.azurewebsites.net. 1


2

kentplaza commented 7 years ago

@roblav96 It is work fine with exact domain. I tried on not using wildcard.

roblav96 commented 7 years ago

@kentplaza ye currently there's no support for wildcards

crisleiria commented 5 years ago

I have the same problem.. Does wildcards are supported now?