How to use test certificate for https

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

How to use test certificate for https

Postby peterv6 » 08. April 2011 00:50

I understand that XAMPP comes with a test certificate for Apache so that an https connection can be tested on a localhost. Can anyone help me figure out how to do this? I've searched Apache forums and found nothing. I've searched the XAMPP documentation and didn't find anything. I really need to be able to create an https connection so I'd really appreciate any help or suggestions anyone can provide.
Peter V.
PETERV
17" MacBook Pro
OS X Snow Leopard 10.6.7
XAMPP 1.7.3
peterv6
 
Posts: 6
Joined: 20. March 2011 01:04
Location: Leominster, Massachusetts

Re: How to use test certificate for https

Postby Sharley » 08. April 2011 04:10

SSL uses port 443, make sure nothing else is using this port - favorite for being the cause.
Check the Apache error.log file for clues.

netstat if the mac has this command line utility may help you find what is using this port.


Make sure that the reference to
Code: Select all
# Secure (SSL/TLS) connections
Include "conf/extra/httpd-ssl.conf"
is not commented out in the Apache httpd.conf file and looks similar to this code snippet - down near the end of the httpd.conf file and is usually uncommented by default.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: How to use test certificate for https

Postby peterv6 » 08. April 2011 04:58

Sharley,
Thanks for the port info.

In my httpd.conf file the include is: "Include etc/extra/httpd-ssl.conf".

The problem was that ssl was disabled by default in my 1.7.3 installation of XAMPP. When I ran xampp with no options, it showed all the options, which have changed since the online documentation was written. I had to run xampp enablessl, then everything worked.
Peter V.
PETERV
17" MacBook Pro
OS X Snow Leopard 10.6.7
XAMPP 1.7.3
peterv6
 
Posts: 6
Joined: 20. March 2011 01:04
Location: Leominster, Massachusetts


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 7 guests