3

I have downloaded xampp for mac, installed it and bought ssl certificat, but i'm having hard

times to install the ssl...

  • Can someone computer wise explain to me step by step, easy how to set it up? please i have

searched google, but could not understand the way they did, please take your time to

explain...

15
  • Often times the supplier of your cert can provide basic instructions for installing the certificate into your web server. These instructions from comodo explain installing it into Apache. Usually you can just read through httpd-ssl.conf and set the relevant values for the crt, key, and ca-bundle from there. Commented Jul 7, 2012 at 19:42
  • Easy said then done, but i have three files : PositiveSSLCA2.crt AddTrustExternalCARoot.crt domain_com.crt, where should i place them in httpd-ssl.conf??? Commented Jul 7, 2012 at 20:37
  • You are missing one critical file, the private key (.key) file. Probably you just need to set SSLCertificateFile to domain_com.crt, SSLCACertificateFile to PositiveSSLCA2.crt and SSLCertificateKeyFile to the private key file you generated initially. Apparently PositiveSSL is a reseller for Comodo, so their directions on installing an SSL cert into Apache should cover everything. Commented Jul 7, 2012 at 20:42
  • They didn't mail me the .key file... where is that? Commented Jul 7, 2012 at 20:51
  • 1
    What domain name is your SSL cert issued to? It will only work for that hostname, probably not for localhost, or you will always get a cert error saying the host doesn't match, but most likely Apache won't try to serve the SSL request because the host doesn't match. But anyway, try explicitly going to https://localhost, note the https in front. Commented Jul 7, 2012 at 21:21

1 Answer 1

5

The file you need to edit to enable SSL is httpd-ssl.conf found in the conf/extra directory.

Change the following directives:

  • SSLCertificateFile to domain_com.crt
  • SSLCACertificateFile to PositiveSSLCA2.crt
  • SSLCertificateKeyFile to the private key file you received when you created the CSR

    • Open " Terminal " and type: sudo nano /private/etc/hosts then add 127.0.0.1 your_domain.com and 127.0.0.1 www.your_domain.com, when done editing the hosts file, press control-o to save the file.

Then call sudo /Applications/XAMPP/xamppfiles/xampp enablessl to enable SSL in httpd.conf and restart Apache. Now try accessing https://localhost

Sign up to request clarification or add additional context in comments.

5 Comments

You helped me setup SSL, but now i'm facing a problem... - i'm trying to use my domain that i bought i have set it as " url frame " pointed to " localhost " just to test it... it open the website, but it dont load https:// it only http://, but when i'm using localhost alone the SSl show up and load page, please help me again with this last step
I'm not sure exactly the set up you are talking about. But you won't be able to use https:// on your actual domain name unless it is configured with the SSL certificate. Maybe post on pastebin the HTML for the frame you are talking about.
I cant use SSL when i'm typing : domain.com it keep loading, but when i'm testing on my localhost localhost it active the SSL -
I found the last step: open " Terminal " and type: " sudo nano /private/etc/hosts " then add 127.0.0.1 your_domain.com and 127.0.0.1 www.your_domain.com , when done editing the hosts file, press control-o to save the file.
what is CSR that you mean ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.