Page 1 of 2
configuring for ssl
Posted: Mon Jun 08, 2009 6:11 pm
by gavin m
Hi,
I have a ssl certificate already on my server, and it was working when I had a Drupal and Uberacart installed.
I was wondering what I have to do to get it to work with open cart? Do I need just need to list the pages in .htaccess? If so, is there a list of recommended pages to protect?
Is there anything else to do before turning on the 'Use SSL' setting, like a configure file somewhere???
Cheers
Gavin.
Re: configuring for ssl
Posted: Tue Jun 09, 2009 2:01 am
by gavin m
Anyone? Surely there are people that have opencart protected by SSL..........
I'm surprised there is no doc on it on the wiki either, as a ssl cert is a basic need for a shop.
The issue is that I have come from Drupal, and they have a module where you just list the pages you want protected and it does it for you. For opencart, I need to know how to do it myself.
Anyone?
Re: configuring for ssl
Posted: Tue Jun 09, 2009 2:47 am
by gavin m
hmmmmm, I think I have it sorted. It's in the config.php file in the root folder.
I've also made changes to the config.php in the admin folder, but I now don't see images on the products in the admin area..... Can any one shed any light on that?
Re: configuring for ssl
Posted: Tue Jun 09, 2009 3:22 am
by Qphoria
right click on where an image should be and do properties or view image and see what the path thinks it is.
Re: configuring for ssl
Posted: Tue Jun 09, 2009 3:43 am
by gavin m
Re: configuring for ssl
Posted: Tue Jun 09, 2009 6:03 am
by pauld
On a similar issue, I am about to try ssl for the first time on opencart.
If I switch to ssl, but get the info wrong, will the admin then be inaccessible for me to switch the ssl back off again?
I am going to be using a shared certificate that I get free from my host so it will be a bit more complicated than usual. Not the best but it will do for now and at least it is free :-)
However, can I switch the ssl off again afterwards?
Thanks for anyone that can help.
Paul.
Re: configuring for ssl
Posted: Tue Jun 16, 2009 5:42 am
by pauld
Hi again,
Just to update that I updated the config file with the https settings, and switched it on and all seems to be working fine.
The reason I asked was that I remember with cubecart once I got the settings wrong (missed a / off the end of one of the settings) and I was totally locked out, could not access admin and could not reset the ssl switch. In the end I was saved from having to reinstall by a user with some php code that switched off the ssl. Although it was a lot of hassle.
Just thought I would let people know,
Paul.
PS Sorry gavin m for hijacking your topic a bit - although I could feel the brushweeds blowing through!

Re: configuring for ssl
Posted: Sat Jun 27, 2009 11:52 pm
by gavin m
I'm still not seeing the images in the admin pages for the products. They show on the store, so thats ok, but it's a little annoying they don't show in the admin area too.
Any ideas?
Re: configuring for ssl
Posted: Mon Jun 29, 2009 2:43 pm
by gavin m
OK, os I have noticed the location for the image is wrong.
When SSL is turned on, the location is:
https://www.mysite.co.uk/cache/307-100x100.jpg
But if I turn SSL off, the lcoation is
http://www.mysite.co.uk/image/cache/307-100x100.jpg
Any idea where I can make the change to ensure the locations are right when SSL is turned on?
Re: configuring for ssl
Posted: Mon Jun 29, 2009 5:39 pm
by readyman
What do you have in your config file? Make sure you fill in the HTTPS fields.
Code: Select all
// HTTP
define('HTTP_SERVER', 'http://localhost/octemplate129/');
define('HTTP_IMAGE', 'http://localhost/octemplate129/image/');
// HTTPS
define('HTTPS_SERVER', '');
define('HTTPS_IMAGE', '');
Re: configuring for ssl
Posted: Tue Jun 30, 2009 3:59 pm
by gavin m
Mine says:
Code: Select all
// HTTP
define('HTTP_SERVER', 'http://www.company.co.uk/');
define('HTTP_IMAGE', 'http://www.company.co.uk/image/');
// HTTPS
define('HTTPS_SERVER', 'https://www.company.co.uk/');
define('HTTPS_IMAGE', 'https://www.company.co.uk/image/');
Does that look right????
readyman wrote:What do you have in your config file? Make sure you fill in the HTTPS fields.
Code: Select all
// HTTP
define('HTTP_SERVER', 'http://localhost/octemplate129/');
define('HTTP_IMAGE', 'http://localhost/octemplate129/image/');
// HTTPS
define('HTTPS_SERVER', '');
define('HTTPS_IMAGE', '');
Re: configuring for ssl
Posted: Tue Jul 07, 2009 7:11 pm
by gavin m
Anyone?
My config file is as above, but still no images in the Admin end of the site. It's starting to annoy me.....

Re: configuring for ssl
Posted: Tue Jul 07, 2009 7:19 pm
by Daniel
pm me your admin details.
this is very strange.
Re: configuring for ssl
Posted: Wed Jul 08, 2009 10:32 pm
by gavin m
Thanks to Daniel I now have this fixed.
It would appear I was the problem.........
Thanks Daniel.
Re: configuring for ssl
Posted: Sat Jul 11, 2009 12:01 am
by KT9130
Can we know what the issue was... care to elaborate?
Thanks
Re: configuring for ssl
Posted: Sat Jul 11, 2009 12:08 am
by Daniel
he had defined his image directory twice and put the wrong url in.
Re: configuring for ssl
Posted: Sat Jul 11, 2009 3:24 am
by gavin m
Yep, I was a muppet.....
Re: configuring for ssl
Posted: Wed Dec 02, 2009 5:07 am
by scottt20
I'm having this problem and have checked my config settings, still don't understand what's wrong. I can access my site at http://___.com and all looks fine, when I go to https://___.com everything BUT the images (products and my logo.png are there).
From my config file:
Code: Select all
<?php
// HTTP
define('HTTP_SERVER', 'http://____.com/admin/');
define('HTTP_CATALOG', 'http://____.com/');
define('HTTP_IMAGE', 'http://____.com/image/');
// HTTPS
define('HTTPS_SERVER', 'https://____.com/admin/');
define('HTTPS_IMAGE', 'https://____.com/image/');
When I view source on my live HTTP site, Line 23 for the logo.png reads <img src="http://___.com/image/logo.png">, but the same line viewed from https://___.com reads only <img src="logo.png"> with no URL prefix, but I've definitely got it in my config.
What's wrong?
Re: configuring for ssl
Posted: Sat Jan 09, 2010 9:20 am
by gowrisankarn
Hi
I had same problem. After updating config file with below details everything works like charm.
// HTTP
define('HTTP_SERVER', '
http://shop.XXXX.com/');
define('HTTP_IMAGE', '
http://shop.XXXX.com/image/');
define('HTTP_CATALOG', '
http://shop.XXXX.com/');
// HTTPS
define('HTTPS_SERVER', '
https://shop.XXXX.com/');
define('HTTPS_IMAGE', '
https://shop.XXXX.com/image/');
define('HTTPS_CATALOG', '
https://shop.XXXX.com/');
Hope this helps..
Regards
Narayana GR
Re: configuring for ssl
Posted: Tue Aug 09, 2011 8:06 pm
by gazdog
Ive also had this problem... Been tring to work out why the ssl on my site was only partially encripted. No facebook, no twitter..
I was using google fonts!!
2 Hours it's taken me! Maybe this may remind anyone else that is looking through this thread. Cheers