Avatar of doctorbill
doctorbill
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Apache and ssl certificates

Apache installation (xampp 7.1.29):

Please can someone give me a STEP by STEP guide to adding a valid ssl to my new apache (xampp) installation
The server is already working with my website but I need to put in a valid ssl certificate
I need to know the process of generating an ssl and adding it
The ssl will be fo www.mydomainname.com
Apache Web Server* apaxhe

Avatar of undefined
Last Comment
doctorbill

8/22/2022 - Mon
David Favor

First you must have a public IP, as SSL certs only work with public IPs.

Trying to get a cert working on a local/private/unroutable IP will fail.

1) Generate a cert.

https://www.experts-exchange.com/questions/29164536/SSL-Solution-for-Multi-Domain-Multi-Host.html covers how I generate certs.

There are many correct answers for "how to generate a cert".

2) Install the cert in your Apache config.

https://www.experts-exchange.com/questions/29137540/How-to-Get-Apache-on-MAMP-Pro-to-only-server-HTTPS.html covers one way to install certs for Apache.

There are also many correct answers to this question too.
kenfcamp

First you must have a public IP

Yes and No

If you're looking to add a SSL Certificate for a website accessible by the the internet, then yes you will need a public IP

If you're looking to add a SSL Certificate for a internal web portal (etc) accessible only internally, then no, you do not need a public IP

SSL certs only work with public IPs.

Again, yes and no

"IF" you're looking to use a purchased (or LetsEncrypt) SSL Cert, then yes you will need a public IP

IF you're looking to use a "Self-Signed" certificate, then no you do not need a public IP.

SSL certificates work perfectly fine on private networks/IP's
doctorbill

ASKER
I already have a wildcard ssl but I need to know specifically how to add it to xampp (apache)
I need the steps please
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
ASKER CERTIFIED SOLUTION
David Favor

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
doctorbill

ASKER
This currently what I have:

## site.test (for ssl)
 <VirtualHost *:80>
     DocumentRoot "C:/xampp/htdocs"
     ServerName inventas.co.uk
     ServerAlias *.inventas.co.uk
 </VirtualHost>
 <VirtualHost *:443>
     DocumentRoot "C:/xampp/htdocs"
     ServerName inventas.co.uk
     ServerAlias *.inventas.co.uk
     SSLEngine on
     SSLCertificateFile "ssl.cert/wildcard_inventas_co_uk.crt"
     SSLCertificateKeyFile "ssl.key/wildcard_inventas_co_uk.key"
 </VirtualHost>

When I try to use it the apache server does not start
doctorbill

ASKER
It's in the httpd.conf file
David Favor

Attach a copy of your /var/log/apache2/error.log file (as text, not an image).

Your Distro may place this file a different place, you may have to dig around /usr/local or /var/log to find the correct file.

This file will contain the exact error. Likely you'll understand the fix, from just a glance at your Apache error log file.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
doctorbill

ASKER
Thanks all