Zen Cart Logo
Forums / Installing on a Linux/Unix Server / SSL not set up right

SSL not set up right

Locked

Views: 2,284

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
10 Oct 2007, 10:04 AM
#1
vinyardo avatar

vinyardo

New Zenner

Join Date:
Oct 2007
Posts:
9
Plugin Contributions:
0

SSL not set up right

Hi, I am having a problem setting up the secure part of my site, I hope someone can help!

The site is http://www.longtronics.co.uk
The secure site is https://secure.longtronics.co.uk

When you click on the "Log In" link, it shows the old "this page contains secure and non secure items" box (in IE) or an icon in the address bar (with no yellow bar) in Firefox.

There are no "src="http" links that I can see, all links and images are hard-coded. Having compared it to other secure sites, I am thinking it may be the css file that is causing the problem, but again I can't find any links!

Any help would be greatly appreciated!

10 Oct 2007, 10:43 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: SSL not set up right

Who is your hosting company?

10 Oct 2007, 11:07 AM
#3
vinyardo avatar

vinyardo

New Zenner

Join Date:
Oct 2007
Posts:
9
Plugin Contributions:
0

Re: SSL not set up right

My hosting company is servage.net - I also got the SSL certificate through them.

10 Oct 2007, 11:29 AM
#4
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: SSL not set up right

The problem is the Domain name used for the Cert.

Your Domain: http://www.longtronics.co.uk/

Cert Domain: https://secure.longtronics.co.uk/

Because your Zen Cart is setup to use "www.longtronics.co.uk" and that's where all the page links point to, the Cert is showing/telling you that the information is unauthorized -- it comes from another Domain name.

What you need to do is have your Cert reissued to 'www.longtronics.co.uk".

10 Oct 2007, 11:41 AM
#5
vinyardo avatar

vinyardo

New Zenner

Join Date:
Oct 2007
Posts:
9
Plugin Contributions:
0

Re: SSL not set up right

Thanks, I'll try that and let you know if it works!

10 Oct 2007, 1:34 PM
#6
vinyardo avatar

vinyardo

New Zenner

Join Date:
Oct 2007
Posts:
9
Plugin Contributions:
0

Re: SSL not set up right

I've just heard back from my hosting company - they say it is not possible to change the certificate! Is there any way around this?!

10 Oct 2007, 2:52 PM
#7
vinyardo avatar

vinyardo

New Zenner

Join Date:
Oct 2007
Posts:
9
Plugin Contributions:
0

Re: SSL not set up right

I have tried changing the location of the secure directory from /www (root) to /www/secure and copying all the files to this directory, but still the same problem.

10 Oct 2007, 9:59 PM
#8
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: SSL not set up right

I'm not sure why your Cert was issued to "secure.longtronics.co.uk" but if any money changed hands, it could be money down the drain. Odds are you will need to purchase a new Cert with the correct Domain name.

11 Oct 2007, 8:29 AM
#9
vinyardo avatar

vinyardo

New Zenner

Join Date:
Oct 2007
Posts:
9
Plugin Contributions:
0

Re: SSL not set up right

I was under the impression that zen cart can be set up to work with any SSL space (even a shared space) or am I wrong?! Could I get around this by directing all traffic to the secure site, or would that just slow it down too much?

11 Oct 2007, 10:47 AM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: SSL not set up right

vinyardo:

I was under the impression that zen cart can be set up to work with any SSL space (even a shared space)Yes, in most cases it can.
However, if the SSL is handled by a different server than the non-SSL processing, you will likely have problems.
If they are on the same physical server, there is usually not a problem unless the server's configuration is odd.

You must set the proper URLs and paths in your configure.php files for it to work.

11 Oct 2007, 11:03 AM
#11
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Location:
Papworth, Cambridgeshire, UK
Posts:
717
Plugin Contributions:
0

Re: SSL not set up right

If I check the DNS for your site, https://www.longtronics.co.uk and secure.longtronics.co.uk have completely different IP addresses, which suggests they are different locations. Either you need to have the Zen Cart code in both locations, or the DNS needs to be changed so that both urls point to the same IP address.

12 Oct 2007, 11:10 AM
#12
vinyardo avatar

vinyardo

New Zenner

Join Date:
Oct 2007
Posts:
9
Plugin Contributions:
0

Re: SSL not set up right

Thanks for your advice on this, I think I have it working now (although not quite how it should be!) - I have run the install on the secure area as well as the normal area, and copied the files over. Now, when you browse the site it is not secure, but as soon as you click "login" or "register", the site becomes secure for the rest of the session. It's not ideal, but it works! :blink:

Thanks again for your help.

12 Oct 2007, 11:41 AM
#13
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Location:
Papworth, Cambridgeshire, UK
Posts:
717
Plugin Contributions:
0

Re: SSL not set up right

Where I come from, that's exactly how it is supposed to work.

12 Oct 2007, 1:12 PM
#14
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: SSL not set up right

Remember that any changes you make in one area, new add-ons or Mod installs, you will have to duplicate in the other area. Both secure & non-secure need to be using the same setup.