I have just stepped into ssl domain and started exploring how to implement ssl. My question is i understand ssl certificates signed by CA actually allow the client or browser to validate that the webserver or webservice is actually the authentic web service what it says it is. But if in my mobile client i am actually hardcoding the webservice url then the client will always call the url unless the apk is modified. So a self signed openssl certificate should be enough right? or not...
Also do i need to put in some code in the client application to actually validate the certificate, because it seems if an attacker wants he can even modify the certificate validation code in the client application also if he has access and so can he modify the url to point to enirely different remote service.
Please guide me on what would be the best way to implement ssl for a hybrid app downloadable from app store or play stores. Or what is the best practice that i should follow. Thanks for any help!