Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Adding SSL support after install/config


Recommended Posts

I have already installed and configured my site the way i want it. When I first installed the script I did not have working SSL support on my server but now I do. How should I go about adding SSL support to OScommerce without reinstalling everything/breaking anything? Any help is much appreciated.

Link to comment
Share on other sites

You will have to get a ssl certificate installed on your domain. If your host provides a shared certificate you can start with that because they are usually provided free. Otherwise you'll have to pay for it. Once installed you need to get the ssl path from your host, then enable ssl by making the following changes to your configure.php files:

In catalog/includes/configure.php

define('HTTPS_SERVER', 'https://YourSSLcertificatePath'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'YourDomain.com');
define('HTTPS_COOKIE_DOMAIN', 'YourSSLcertificatePath');
define('HTTPS_COOKIE_PATH', '/catalog_or_YourstoreName/')

In catalog/admin/includes/configure.php

define('HTTPS_CATALOG_SERVER', 'https://YourSSLcertificatePath');
define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module


You will need to change permissions to the configure.php files to 777 to edit, then change back to 444 when finished.

Link to comment
Share on other sites

Thank you, I will give that a try after I get SSL working properly. The linux server belongs to me so I have root and I am having trouble enabling SSL for any account. SSL is running and working because there is an apache vhost that says if any connection is attempted via SSL for any vhost that has no defined SSL entries, it catches the connection and fowards to some weird doc root. I am using webmin to configure everything. What i dont understand is that the previously mentioned vhost works fine and has ssl working for it but if I enable SSL for any other vhost and go to restart apache, it wont start back up unless I re-disable ssl for that account.

Link to comment
Share on other sites

Sorry I don't think I can help much with setting up ssl on Apache/ Linux etc. I admire your spirit though setting up your own server. I first setup a local Apache server, mySQL and PHP also to test osC. I solved many server issues during the 1+ month configuration / testing and was starting to configure apache with ssl and setup web mail when I just ran out of time. Great learming experience though and it helped me get osC working online in les than 1 hour with a very inexpensive hosting plan. I'm sure there are others in this forum that will see this and can help you. good luck



Link to comment
Share on other sites

  • 1 year later...

I'm told the process for this is to get a CSR from the host. Then buy the certificate from godaddy. Then send the zip file godaddy sends me to my host.


The problem I have is this. I don't want all the pages to change from http to https (this could affect all incoming links), just the checkout section.


Do I use just the domain when requesting the CSR or the full path to the checkout? And when requesting the certificate from godaddy, do I use the domain or full path.


My host tells me that godaddy is the cheapest place for certificates BTW.



Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...