Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I get an SSL to work on osC?


Whiskers

Recommended Posts

Posted

Hi all,

 

I have just got an SSL from goDaddy and confirmed all the certificate and uploaded it onto the server using cpanel, but my site still doesn't show the https://, so I'm not sure if I have to install it on osC somwhere? Can somebody point me in the right direction please?

 

Thanks in advance!

Posted
Set that up in your configure.php files

 

_sM

 

Cheers h2o. I know you must have been doing this too recently. :D What exactly do I need to do with the configure files. Can you give me a bit of a walkthrough?

Posted

Nick,

 

Yes, link from Brian covers it better -

 

Because it varies depending on the type of hosting but should be something like-

 

For dedicated domains:

catalog/includes...
define('HTTPS_SERVER', 'https://certificateAddress/yourDomain.com');
define('HTTPS_COOKIE_DOMAIN', 'certificateAddress/yourDomain.com');

admin/includes...
define('HTTPS_CATALOG_SERVER', 'https://certificateAddress/yourDomain.com');

 

for shared:

catalog/includes
define('HTTPS_SERVER', 'https://sharedCertificateAddress/~userName');
define('HTTPS_COOKIE_DOMAIN', 'sharedCertificateAddress/~userName');

admin/includes...
define('HTTPS_CATALOG_SERVER', 'sharedCertificateAddress/~userName');

 

check with your host, certainly before going live to be sure, also you may need to secure other paths such as images, etc depending on your setup...

 

_sM

Posted

Cheers Brian, that was useful. I have changed the "s" bits, but I still am not gettign it show up when I go to the domain. Also there was no bit like that code you just put up h2o? Where is that bit showing the certifcate address?

Posted

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Have you turned it on in your configure files.

 

define('ENABLE_SSL', true);

REMEMBER BACKUP, BACKUP AND BACKUP

Posted

 

Hey Jim, top addon! Yet again you are a star! The first fiel show up a problem with the configure file. Something about permissions, so I sorted that out. I am getting this warning message show up now:

 

SSL Variables

 

HTTP HOST: []

 

Server Port: [80]

 

SSL Status: [undefined!]

 

Fowarded Server: [undefined!]

 

Fowarded Host: [undefined!]

 

Fowarded By: [undefined!]

 

$_SERVER['HTTPS']: [undefined!]

 

Warning!!!

 

The standard osC SSL detection code in /includes/application_top.php may NOT detect your SSL status correctly!!!

Posted
Have you turned it on in your configure files.

 

define('ENABLE_SSL', true);

 

Yeh I have now. There was a problem with the permissions which I have sorted out! :rolleyes:

Posted

I don't think the SSL cert. is installed correctly.

 

When I try to go to the SSL side of the site, all I get is "Cannot display page".

:(

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
I don't think the SSL cert. is installed correctly.

 

When I try to go to the SSL side of the site, all I get is "Cannot display page".

:(

 

Erm....... Now I don't know what to do from here!!! :blink: It is showing up on FTP as I uploaded the 2 files that GoDaddy sent me. I have just looked on FTP and they are not in the www section. Do they need to be? They are in the bit with .cpanel, .fantastico, .htpasswords, etc.

Posted

On most servers you have to go thru an "install procedure" via cPanel not just FTP the files and go.

 

Contact the host.

 

Until I can get more than "Cannot display page", I can't help.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
On most servers you have to go thru an "install procedure" via cPanel not just FTP the files and go.

 

Contact the host.

 

Until I can get more than "Cannot display page", I can't help.

 

Yeah I went to the cpanel and uploaded the .crt file which it asked me to then it made them appear on FTP. It is showing as an installed certificate on cpanel. Shall I remove them and upload them again? Should there be 2 certificates in there? There is the domain one and a "go" one. Which I presume is something to do with GoDaddy so I put that in there too. :blink:

Posted
I don't think the SSL cert. is installed correctly.

 

When I try to go to the SSL side of the site, all I get is "Cannot display page".

:(

 

Where will I find this side of the site? is it www.mysite.co.uk/ssl. If so then I think it is because it is not under the www bit when I look at FTP? It is in the section before all the catalog etc. (although I don't have "catalog")

Posted

I've just realised that the admin page doesn't work now. Just showing page not displayed. What would make it do that?

 

When I take the "s" off on the configue.php file then it works again?!!?

Posted

I have now got a secure IP to go with the SSL, but I still can't seem to work out why it's not working properly. Is there something else that needs changing?

Posted

TALK TO THE HOST

 

All I get is "Cannot display page"

 

That is a SERVER problem not an osc problem

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Sorry Jim, what is the rest of the website you are looking at? Is it www.mydomain/ssl?

Posted

I'm looking at the site you PM'd me the link to, has the numbers 925 in the URL.

 

I don't have your URL any more.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
I'm looking at the site you PM'd me the link to, has the numbers 925 in the URL.

 

I don't have your URL any more.

 

When I type in the main domain name it works fine, but when I try /ssl it shows cannot display page. Is that what you mean?

 

I'll PM the link.

Posted

The link is the same.

 

If SSL is installed correctly the URL needs to be https://domain.com

 

NOT http://domain.com/ssl

 

When I try to access the site with https all I get is cannot display page.

 

Until your HOST can get it to cough up something - osC won't work.

:blush:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

I've just come across another "Install Certifcate to Host" section that wasn't there before. I think it might be because I didn't have the secure IP.

 

It now lets me go all the way through the checkout, but it still does that loop thing back to the cart instead of going to Google. :( It just shows "oops" still when you click the Google button instead.

Posted

At least the SSL is working now.

 

This causes the nonsecure item popup in IE:

 

<img src="http://www.DOMAIN.com./live_support/statusimage.php" border="0" alt="Request Live Support" title=" Request Live Support " width="122" height="62">

Can't have scripts or images from HTTP sources on a HTTPS page.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Archived

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

×
×
  • Create New...