0
  1. I have a web application hosted on local server. Which we have opened for public use by masking this local IP to public IP provided by ISP. So now website is accessible with public IP.

  2. We required to make it used by https, so I generated the SSL Certificate on public IP from zero SSL. This is working without any issue.

  3. Now there is need to use this web application with URL with domain name instead of IP. I created sub domain from the cPanel of our website and directed it to Public IP by editing A Records for sub domain. Now web application is accessible with URL as required but it takes SSL certificate generated for public IP, so shows alert icon on URL bar.

So current scenario is, when web application is opened, request goes to my Hosting server, which route to firewall masked public IP because of "A" Record configuration at cPanel host. This request further goes to local IP of my web app server. Subdomain on domain hosting --> Public IP on firewall --> Local Server

Is there any way to, generate SSL Certificate for subdomain and assign directly to server? Directly giving public IP to local server is one solution, but we want to avoid it. Any other solutions are accepted.

2
  • docs.jexusmanager.com/tutorials/https-binding.html#background You will have to add the right certificate to Windows HTTP API.
    – Lex Li
    May 18, 2023 at 15:24
  • With trial and error, I understood that, it doesn't matter, whatever route request goes from client to server, but if SSL certificate of same URL/IP entered in client's browser is available at the server, it will resolve to successful https connection. So in my case as @LexLi said I just had to add SSL with subdomain name. I checked your comment later but it was adequate to confirm what I found after trying myself. - Thanks
    – jatz2012
    May 19, 2023 at 12:52

0

You must log in to answer this question.

Browse other questions tagged .