Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Installing Zen Cart / Installing on a Linux/Unix Server / Do I SSL my entire ZC Folder, or just portions of it?

Do I SSL my entire ZC Folder, or just portions of it?

Locked
This thread is locked. New replies are disabled.
12 Feb 2010, 9:30 PM
#1
cante avatar

cante

New Zenner

Join Date:
Feb 2008
Posts:
4
Plugin Contributions:
0

Post #1 by cante

I see a mixture of comments in these forums regarding some use of SSL in ZC and others seem to use it throughout.

I use ZC as a subfolder on my site. ZC is a store within my website and operates apart from it (nothing linked from ZC back to the website, unless it opens a new window). It has worked well for me without any problems. I am not a seasoned web designer and have been wondering if I should use SSL on the entire ZC subfolder or just the Admin and after the customer logs in/registers.

My SSL is shared a certificate.

Thanks for your input.
Cante

12 Feb 2010, 9:36 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

If you have ENABLE_SSL set to true and have supplied a valid HTTPS URL, then Zen Cart takes care of using SSL on applicable pages such as login/registration/checkout/my-account.
As for the admin, if you want all your admin pages to be served over SSL, use an HTTPS address in the HTTP_SERVER setting of your admin configure.php file settings.
https://www.zen-cart.com/tutorials/index.php?article=14

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Feb 2010, 9:39 PM
#3
jdw1979 avatar

jdw1979

Zen Follower

Join Date:
Jun 2009
Location:
NC
Posts:
174
Plugin Contributions:
0

Post #3 by jdw1979

SSL on the entire folder can cause awkward behaviors...or, at the very least, that's what I've read posted elsewhere in this forum. If your Security Certificate is active, then in yourstore.com/includes/configure.php, locate:

define('ENABLE_SSL_CATALOG', 'true');

define('ENABLE_SSL_ADMIN', 'true');

Be sure that which is in boldface here is set to "true." You will also need to locate this same data in yourstore.com/YOUR-HOPEFULLY-RENAMED-ADMIN-FOLDER/includes/configure.php and do the same thing.

I hope this was helpful.

Johnathan D. Walker
Wilburn Medical USA

12 Feb 2010, 9:40 PM
#4
jdw1979 avatar

jdw1979

Zen Follower

Join Date:
Jun 2009
Location:
NC
Posts:
174
Plugin Contributions:
0

Post #4 by jdw1979

Oops...the Doctor is in...do what he said. Ignore me. Thanks.

:lamo:

Johnathan D. Walker
Wilburn Medical USA

23 Feb 2010, 12:09 AM
#5
cante avatar

cante

New Zenner

Join Date:
Feb 2008
Posts:
4
Plugin Contributions:
0

Post #5 by cante

Thanks for the information and the link. I did read the tutorial before posting but my question is more basic, or should I say not specifically dealing with how to turn it on in ZC.

Pardon my ignorance, as it is a miracle I have developed my website by myself as far as I have, and luckily without any breaches/attacks.

I'm guessing this question is obviously very elementary for most of you but to prevent trial and error I pose this to you guys since you all also respect the security of other peoples websites. My hosting company is a little too techie for me and it takes several tickets to get them to realize just how simple a question I may be asking. So this can be answered by any of you guys, I don't want to waste the guru's time when they can help others with the more advanced issues.

Let's say I have my main website:

e.g. http://www.MyDomain.com

This is my "info" site that provides all the who what when where, history, pictures, videos, etc of my company and products. (I manufacture several products that are "special interest" and support parts and acessories, this is not a broad scope web store)

This site was constructed years ago before I started up the store and ventured into ecommerce so it is a very linked to site, hence the reason I set up the rest of the website as I did.

I added Zen Cart as a subfolder as well as a PHP forums board and a PHP photo gallery in the same manner. Links from within the main site leads them to the "modules"/subfolders. So ZC is sitting in a URL like:

http://www.MyDomain.com/zen

I have a shared certificate with my hosting company (webmaters.com). They use:

https://secured.com
```  and provide you with a folder:

e.g. https://secured.com/~f1000/


So I assume I would set up ZC (as per the tutorial) like the third option for shared certificates:

// Define the webserver and path parameters
define('HTTP_SERVER', 'http://www.YOUR_SHOP.com');
define('HTTPS_SERVER', 'https://YOUR_SECURE_SERVER.net/~YOUR_USERNAME');
define('ENABLE_SSL', 'true');


Now I'm all good with that... My question is more basic:  What folder(s)/file(s) am I sticking in that "~f1000" folder?

I have the "~xxxx" folder that I am paying for, but what do I stick in it to make it "https"?  Am I supossed to stick the whole ZC subfolder in it?  That doesn't make sense to me.

I feel like a dolt :frusty:.  I just finally finished up all my tax stuff so I can finally focus and put this to rest.

Thank you to anybody who bothered to read this wall of text and an even bigger thanks to anyone willing to provide some guidance.
23 Feb 2010, 12:17 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #6 by drbyte

You're getting confused by your host's choice of the word "folder".

As per the FAQ, just follow the pattern:

define('HTTP_SERVER', 'http://www.my_domain.com.com');
define('HTTPS_SERVER', 'https://your_secure_domain.com/~f1000'); 
define('ENABLE_SSL', 'true');

Your existing DIR_WS_CATALOG and DIR_WS_HTTPS_CATALOG probably already have the /zen/ in them correlating to the /zen/ folder where you've installed your store. Thus, there should be no other changes required.

Your Zen Cart store runs all from one main file, so there is no need to worry about "which folders to secure". ZC takes care of loading files from its supporting folders automatically. Don't overcomplicate things ;)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

23 Feb 2010, 12:27 AM
#7
cante avatar

cante

New Zenner

Join Date:
Feb 2008
Posts:
4
Plugin Contributions:
0

Post #7 by cante

Thanks,

So your saying that I don't have to put anything in that (e.g. ~f1000) location?

Just place that URL into ZC and that's it?

23 Feb 2010, 12:49 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #8 by drbyte

No, you're confusing it again.
If your hosting company told you to use "/~f1000", then you SHOULD use "/~f1000". That's what the FAQ article tells you too. Just follow the patten. It's that simple.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

23 Feb 2010, 4:22 PM
#9
cante avatar

cante

New Zenner

Join Date:
Feb 2008
Posts:
4
Plugin Contributions:
0

Post #9 by cante

Thanks DrByte...

I found the answer to my problem. Tech support at my hosting company finally told me that thier shared certificate does not work with ZC only thier proprietary phpcart! It is structured completely differently. Thier "shared certificate" is a directory just like httpdocs and you put the files/folders/directories in there that you want.

Nowhere in their documentation do they say it only works with thier proprietary cart and instead, I guess, market it to stick protected files in it so they can be downloaded securely?

I cancelled that shared certificate and requested a trusted certificate adn going through that right now. The instructions for utilizing that is so simple, I can see how far from what it should have been it was that what I was sayin gdidn't make sense.

Just for your information... If you get anyone who says they are having trouble using a shared certifiicate from webmasters.com web hosting or Secured.com SSL for ZC, tell them they have to use a trusted certificate (or at least someone else's shared certificate).

I have to wait for the certificate to be issued but I am so relieced now, it seems so simple!:clap:

Thanks again

23 Feb 2010, 5:01 PM
#10
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Post #10 by schoolboy

It is far more professional to have your own dedicated SSL Certificate. Apart from helping to secure the transit of data, your customers will see that you take their privacy issues seriously.

Make sure you indicate prominently on your site, that it is SSL secure, and don't be shy to encourage customers to verify the certificate if they want to.

This is good marketing for you.

20 years a Zencart User