Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fix for SSL Image Errors


mhogan

Recommended Posts

Here's a little problem I ran into. Hopefully this will help someone in a similar situation.

 

After I installed my SSL certificate, I ran into a situation where, upon loading the site, I would get 25 pop up windows indicating SSL errors. The first two SSL checks were OK but the third check would indicate an error like this: "The name on the security certificate is invalid or does not match the name of the site."

 

After checking my config.php, I found that the file contained the following lines:

 

  define('HTTP_SERVER', 'http://mysite.com');
 define('HTTPS_SERVER', 'https://mysite');
 define('ENABLE_SSL', true);
 define('HTTP_COOKIE_DOMAIN', 'mysite.com');
 define('HTTPS_COOKIE_DOMAIN', mysite.com');

 

However, my SSL certificate was issued to www.mysite.com. I edited the file to read as follows:

 

  define('HTTP_SERVER', 'http://www.mysite.com');
 define('HTTPS_SERVER', 'https://www.mysite');
 define('ENABLE_SSL', true);
 define('HTTP_COOKIE_DOMAIN', 'www.mysite.com');
 define('HTTPS_COOKIE_DOMAIN', 'www.mysite.com');

 

And, like magic, this fixed the problem.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...