Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL NOT WORKING!!


mreigle

Recommended Posts

I cant seem to figure out why my SSL isn't working. The lock appears for a second then disappears even when I manually type the HTTPS. Does anyone have any ideas?

 

 

Here's configure.php

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.preciousbedding.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://www.preciousbedding.com'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'www.preciousbedding.com');

define('HTTPS_COOKIE_DOMAIN', 'www.preciousbedding.com');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_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/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/home/precious/public_html/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'yoyo');

define('DB_SERVER_PASSWORD', 'yoyo');

define('DB_DATABASE', 'yoyo');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

Link to comment
Share on other sites

Actually, after you log in, it says 'the name on the site does not match the name on the certificate. The certificate is issued to www.mydomain.com, then after you click "yes, i want to proceed", the lock disappears

Link to comment
Share on other sites

I've done that and I'm still having the same problem.

Look for more mixed content, it's in there someplace but I haven't found it yet. It is the problem. Maybe in the stylesheet.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

You're calling a stylesheet via http somewhere, http://www.preciousbedding.com/1024.css

 

Error: Expected end of value for property but found ':'. Error in parsing value for property 'font-family'. Declaration dropped.

Source File: http://www.preciousbedding.com/1024.css

Line: 100

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Look for more mixed content, it's in there someplace but I haven't found it yet. It is the problem. Maybe in the stylesheet.

 

The only other references that i found where in the window_size.js file. They were:

 

HREF='http://www.preciousbedding.com/800.css'>");

 

which I changed to...

 

HREF='//preciousbedding.com/800.css'>");

 

The only file references in the stylesheets are local ones to images (ie: /images/bg1.gif)

 

The site isnt open yet so feel free to make an account with bs informaton if need be.

 

credit card: 4111111111111111

Link to comment
Share on other sites

There's no stylesheet declaration to be found.

 

ie: <link rel="stylesheet" type="text/css" href="stylesheet.css">

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Now I'm getting the old, "The name on the security certificate is invalid or does not match the name on the site error."

 

The certificate is issued to WWW.mydomain.com.

 

I've changed every reference in my CSS and JS files to local ones, so I'm no longer getting the "Page contains insecure items" error. I feel like a dummy for not knowing what's wrong. Everything seems right! Here's my configure.php... once again....:

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.preciousbedding.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://www.preciousbedding.com'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'www.preciousbedding.com');

define('HTTPS_COOKIE_DOMAIN', 'www.preciousbedding.com');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_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/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/home/precious/public_html/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', dobeadadloo');

define('DB_SERVER_PASSWORD', 'yumyyumyyumy');

define('DB_DATABASE', 'laladoodumdeeda');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...