Certification problem when access server with IP

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Certification problem when access server with IP

Postby gomidas95 » 13. January 2021 12:22

Hello, I am developing an Android app. That is why I need to use XAMPP. Android demands SLL certification. In the end I found something to do it for localhost. This page: https://shellcreeper.com/how-to-create-valid-ssl-in-localhost-for-xampp/

My issue is when I access from https://localhost that is okay. However, if I use https://192.168.0.1x (so I need to do it in order to access it from Android simulator) I get "connection not secure" error again. I do not know what to do. Anyone has idea ?
gomidas95
 
Posts: 3
Joined: 08. September 2019 02:16
XAMPP version: 7.3.9
Operating System: windows8.1

Re: Certification problem when access server with IP

Postby Nobbie » 13. January 2021 12:39

Actual, probably there is no solution for that. You have to find a way to access your Xampp Server with a Domain name (not "localhost", as this only works locally on the Xampp PC) from your Android Device. And then you need a certificate for that domain name. You cannot create SSL certificates for plain IPs.

Either get a domain name from a provider which can connect your local Dynamic WAN IP to the Domain name (like www.selfhost.de for example), or (much easier) simply get you a provider with webhosting services and develop your App on that webhost. Forget about Xampp. This will safe you nerves, time and probably money, webhosting starts from 1€ per month and already your electricity bill for the Xampp server will exceed that.
Nobbie
 
Posts: 11862
Joined: 09. March 2008 13:04

Re: Certification problem when access server with IP

Postby gomidas95 » 13. January 2021 13:39

uh, I just wanted to save a few dollars. I will buy it.
gomidas95
 
Posts: 3
Joined: 08. September 2019 02:16
XAMPP version: 7.3.9
Operating System: windows8.1


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 83 guests