SSL Certificate

craigForo

Active member
Regarding the instructions @Paul B created for running test sites locally, is there any reason why the local IP address can not be used instead of "localhost?"

I ask because localhost cannot be used if you want to set up a LAN and access the test site from another computer on the network.

I followed the directions and used the IP address, but I cannot get the site to load into SSL.

I am unsure if I am missing anything or if this is just impossible using IP.
 
What software do you use ?
I use Laragon and this makes it possible to create virtual hosts and therefore we can reach the sites locally via xenforo.test type addresses for example.
Code:
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#    127.0.0.1       localhost
#    ::1             localhost
127.0.0.1      xenforo22.test       #laragon magic!   
127.0.0.1      xenforo23.test       #laragon magic!

But beyond that, the software creates the appropriate certificates automatically and by opening the right ports. Maybe you should try it?
 
What software do you use ?
I use Laragon and this makes it possible to create virtual hosts and therefore we can reach the sites locally via xenforo.test type addresses for example.
Code:
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#    127.0.0.1       localhost
#    ::1             localhost
127.0.0.1      xenforo22.test       #laragon magic!  
127.0.0.1      xenforo23.test       #laragon magic!

But beyond that, the software creates the appropriate certificates automatically and by opening the right ports. Maybe you should try it?
I’m running xampp, just need to get the ssl to work.
 
SSL certs obviously won't work, but as long as the port is open, it should work - you'll just get an insecure error.
 
That explains why. I didn’t know that. So either live with what I have or go the way of virtual host.
 
Back
Top Bottom