Hostname Does Not Match In Lollipop Devices But Works Fine In Postman And Marshmallow Devices
Recently SSL certificates were added to the server, so I have changed the url in android from http://appname.com to https://www.appname.com , this works fine on marshmallow devices
Solution 1:
The error means that the hostname to which the certificate has been issued (CN field in subject) does not match with the server name.
If you are using the URL https://www.appname.com
then the certificate should be issued to www.appname.com
or *.appname.com
. It hostname of the certificate is appname.com
then error is correct and you can use https://appname.com
but not https://www.appname.com.
Deploy your server in https://appname.com
, issue a new certificate for www.appname.com
or set a HostnameVerifier
to allow www.appname.com
Post a Comment for "Hostname Does Not Match In Lollipop Devices But Works Fine In Postman And Marshmallow Devices"