osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Unencrypted connection, please help

This is a discussion on Unencrypted connection, please help within the osCMax v2 Features Discussion forums, part of the osCMax v2.0 Forums category; Every thing I change to fix one problem seems to create another one. Now that I've got the HTTP vs ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Features Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 03-07-2007, 05:13 PM
New Member
 
Join Date: Jan 2007
Posts: 16
Thanks: 13
Thanked 0 Times in 0 Posts
Rep Power: 0
subtleinstrument is on a distinguished road
Default Unencrypted connection, please help

Every thing I change to fix one problem seems to create another one.

Now that I've got the HTTP vs HTTPS problem sorted out, I found out that our checkout pages aren't secure.

When we sign in to OSCMax Admin, we get a message that says,

\"Although this page is encrypted, the information you have entered is to be sent over an unencrypted connection, and could easily be ready be a third party. Are you sure you want to continue sending this information?\"

If we log in, we get the OSCMax admin panel, but we have no \"secure connection\" in our browser, and the OSCMax admin page includes the message \"You are not protected by a secure SSL connection.\"

Even worse:

When people on our OSCMax shopping cart try to check out (or do anything else that sends them to an HTTPS page), we get a "Warning: contains unauthenticated content" message from Firefox.

The page info says:

"Connection Partially Encrypted
"Parts of the page you are viewing were not encrypted before being transmitted over the Internet.
"Information send over the Internet without encryption can be seen by other people while it is in transit."

This is going to make our customers doubt our security.

Here's Includes/configure.php
PHP Code:
  define('HTTP_SERVER''http://www.artofloving.ca'); // eg, http://localhost - should not be empty for productive servers
//  define('HTTP_SERVER', 'https://www.artofloving.ca'); // eg, http://localhost - should not be empty for productive servers
  
define('HTTPS_SERVER''https://www.artofloving.ca/'); // eg, https://localhost - should not be empty for productive servers
//  define('HTTPS_SERVER', 'https://www.artofloving.ca'); // eg, https://localhost - should not be empty for productive servers
  
define('ENABLE_SSL'true); // secure webserver for checkout procedure?
//  define('HTTP_COOKIE_DOMAIN', 'http://www.artofloving.ca');
//  define('HTTP_COOKIE_DOMAIN', 'https://www.artofloving.ca');
//  define('HTTPS_COOKIE_DOMAIN', 'https://www.artofloving.ca');
//  define('HTTPS_COOKIE_DOMAIN', 'https://www.artofloving.ca/');
  
define('HTTP_COOKIE_DOMAIN''www.artofloving.ca');
  
define('HTTPS_COOKIE_DOMAIN''www.artofloving.ca');
  
define('HTTP_COOKIE_PATH''/');
  
define('HTTPS_COOKIE_PATH''');
//  define('HTTPS_COOKIE_PATH', '/');
  
define('DIR_WS_HTTP_CATALOG''/');
  
define('DIR_WS_HTTPS_CATALOG''');
//  define('DIR_WS_HTTPS_CATALOG', '/');
  
define('DIR_WS_IMAGES''images/');
  
define('DIR_WS_ICONS'DIR_WS_IMAGES 'icons/');
  
define('DIR_WS_INCLUDES''includes/');
  
define('DIR_WS_BOXES'DIR_WS_INCLUDES 'boxes/');
  
define('DIR_WS_FUNCTIONS'DIR_WS_INCLUDES 'functions/');
  
define('DIR_WS_CLASSES'DIR_WS_INCLUDES 'classes/');
  
define('DIR_WS_MODULES'DIR_WS_INCLUDES 'modules/');
  
define('DIR_WS_LANGUAGES'DIR_WS_INCLUDES 'languages/'); 
and here's Admin/Includes/configure.php

PHP Code:
 define('HTTP_SERVER''http://www.artofloving.ca'); // eg, http://localhost - should not be empty for productive servers
  
define('HTTP_CATALOG_SERVER''http://www.artofloving.ca');
  
define('HTTPS_CATALOG_SERVER''https://www.artofloving.ca/'); // needs a trailing "/" ?
  
define('ENABLE_SSL_CATALOG''true'); // secure webserver for catalog module
  
define('DIR_FS_DOCUMENT_ROOT''D:/home/shw3_005/artofloving.ca/public_html/'); // where the pages are located on the server
  
define('DIR_WS_ADMIN''/admin/'); // absolute path required
  
define('DIR_FS_ADMIN''D:/home/shw3_005/artofloving.ca/public_html/admin/'); // absolute pate required
  
define('DIR_WS_CATALOG''/'); // absolute path required
  
define('DIR_FS_CATALOG''D:/home/shw3_005/artofloving.ca/public_html/'); // absolute path required
  
define('DIR_WS_IMAGES''images/');
  
define('DIR_WS_ICONS'DIR_WS_IMAGES 'icons/');
  
define('DIR_WS_CATALOG_IMAGES'DIR_WS_CATALOG 'images/');
  
define('DIR_WS_INCLUDES''includes/');
  
define('DIR_WS_BOXES'DIR_WS_INCLUDES 'boxes/');
  
define('DIR_WS_FUNCTIONS'DIR_WS_INCLUDES 'functions/');
  
define('DIR_WS_CLASSES'DIR_WS_INCLUDES 'classes/');
  
define('DIR_WS_MODULES'DIR_WS_INCLUDES 'modules/');
  
define('DIR_WS_LANGUAGES'DIR_WS_INCLUDES 'languages/');
  
define('DIR_WS_CATALOG_LANGUAGES'DIR_WS_CATALOG 'includes/languages/');
  
define('DIR_FS_CATALOG_LANGUAGES'DIR_FS_CATALOG 'includes/languages/');
  
define('DIR_FS_CATALOG_IMAGES'DIR_FS_CATALOG 'images/');
  
define('DIR_FS_CATALOG_MODULES'DIR_FS_CATALOG 'includes/modules/');
  
define('DIR_FS_BACKUP'DIR_FS_ADMIN 'backups/');
  
define('DIR_FCKEDITOR'DIR_FS_CATALOG 'FCKeditor/');
  
define('DIR_WS_FCKEDITOR'DIR_WS_CATALOG 'FCKeditor/'); 
Please help. Thanks in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 03-07-2007, 06:40 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,973
Thanks: 80
Thanked 345 Times in 324 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: Unencrypted connection, please help

1. You have to change the configure.php for your admin panel to use ssl.

change this:
PHP Code:
define('HTTP_SERVER''http://www.artofloving.ca'); 
to this:
PHP Code:
define('HTTP_SERVER''https://www.artofloving.ca'); 
That will get your admin panel using ssl.


Quote:
When people on our OSCMax shopping cart try to check out (or do anything else that sends them to an HTTPS page), we get a "Warning: contains unauthenticated content" message from Firefox.
This means you are calling images or javascript with a hardcoded url. You need to use a relative path to all your image. It will be in your customization, not the default code. So, any graphics or javascript you added need to use relative paths and NOT full urls.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
The Following User Says Thank You to michael_s For This Useful Post:
subtleinstrument (03-08-2007)
  #3  
Old 03-08-2007, 10:30 AM
New Member
 
Join Date: Jan 2007
Posts: 16
Thanks: 13
Thanked 0 Times in 0 Posts
Rep Power: 0
subtleinstrument is on a distinguished road
Default Re: Unencrypted connection, please help

Quote:
Originally Posted by michael_s View Post
1. You have to change the configure.php for your admin panel to use ssl.

change this:
PHP Code:
define('HTTP_SERVER''http://www.artofloving.ca'); 
to this:
PHP Code:
define('HTTP_SERVER''https://www.artofloving.ca'); 
That will get your admin panel using ssl.
That worked great. Thank you!

Quote:
Originally Posted by michael_s View Post
This means you are calling images or javascript with a hardcoded url. You need to use a relative path to all your image. It will be in your customization, not the default code. So, any graphics or javascript you added need to use relative paths and NOT full urls.

We're still having problems with that. We haven't done anything to DIR_WS_IMAGES or DIR_WS_ICONS, and this problem didn't exist before we started fiddling with HTTP_SERVER and the like.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 03-08-2007, 12:46 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,973
Thanks: 80
Thanked 345 Times in 324 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: Unencrypted connection, please help

Can you send me a url to the page popping the error?
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 03-08-2007, 12:59 PM
New Member
 
Join Date: Jan 2007
Posts: 16
Thanks: 13
Thanked 0 Times in 0 Posts
Rep Power: 0
subtleinstrument is on a distinguished road
Default Re: Unencrypted connection, please help

Go to Loading...

Select anything, put it in the shopping cart and try to check out. You'll get a "Welcome, please sign in" page (https://www.artofloving.ca/login.php), which is an HTTPS page, but Firefox displays a padlock with a red slash through it in the lower right corner. The warning is "Content Partially Encrypted"

If you log in, you get the checkout procedure pages, but they're insecure HTTP pages, not HTTPS.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 03-08-2007, 04:16 PM
New Member
 
Join Date: Jan 2007
Posts: 16
Thanks: 13
Thanked 0 Times in 0 Posts
Rep Power: 0
subtleinstrument is on a distinguished road
Default Re: Unencrypted connection, please help

After considerable headbanging, I and our tech consultant figured out what needed to be changed so that the checkout pages stopped giving "partial encryption" warning messages.

Actually, the solution wasn't in either of the configure.php files, but in /includes/application_top.php The problem was that the graphics and other files the https page was calling weren't secure, so the browser gave insecure warnings.

comment out

PHP Code:
$request_type = (getenv('HTTPS') == 'on') ? 'SSL' 'NONSSL'
and replace with

PHP Code:
$request_type = (eregi ($HTTP_HOSTHTTPS_SERVER)) ? 'SSL' 'NONSSL'
That apparently made everything work the way it should.

This may have had something to do with our hosting service upgrading to a new version of PHP a couple of weeks ago.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 03-08-2007, 04:30 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,973
Thanks: 80
Thanked 345 Times in 324 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: Unencrypted connection, please help

Beat me to it! Different servers report ssl differently, and this is what you are running up against. There is no standard response string, and if osCMax doesn't get what it is expecting, you get no switch for your images.

Glad you found it!
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
The Following User Says Thank You to michael_s For This Useful Post:
subtleinstrument (03-08-2007)
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
New install..Database connection problems eengledow osCMax v1.7 Installation 2 12-12-2004 07:21 PM
The connection to ..... has terminated. Some data... cupido osCommerce 2.2 Installation Help 1 06-27-2004 04:24 PM
A test connection made to the database was NOT successful. JeremyLocke osCommerce 2.2 Installation Help 1 12-29-2002 10:17 PM


All times are GMT -8. The time now is 06:03 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax