Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL


peteums

Recommended Posts

Posted

I ordered an SSL certificate it works but with one drawback, that I am clueless on how to fix.

I got my certificate for www.componentbroker.net but it's currently only working at https://componentbroker.net. I have to get the server to match the certificate, currently it works but visitors get the following message "The name on the certificate is invalid or does not match the name of the site: My provider is being a pain at the moment, they won't change the certificate, so i have to modify the website. Can it be done? If yes can somone help me out a little, thanks.

Posted

Change your links in includes/configure.php so that they are for http://componentbroker.net and https://componentbroker.net and so that the http_cookie_domain and https_cookie_domain are just for componentbroker.net (no www.)

 

SSL certs are either issued to yourdomain.com or www.yourdomain.com but this depends entirely upon which type of server your site is on. You can't have a cert made out to www.yourdomain.com if the server does not support that type of certificate.

 

Vger

Posted

That won't work, my problem is the reverse, the certificate is made fow www.componentbroker.net. for some reason I can't get includes/configure.php to work properly.

 

Using the below config the SSL Works but I get <b>The name on the security certificate does not match the name of the site.</b>

 

define('HTTP_SERVER', 'http://www.componentbroker.net');

define('HTTPS_SERVER', 'https://componentbroker.net');

define('ENABLE_SSL', true);

define('HTTP_COOKIE_DOMAIN', 'www.componentbroker.net');

define('HTTPS_COOKIE_DOMAIN', 'www.componentbroker.net');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

 

If I use the following config, I can't access any of the HTTPS pages

 

define('HTTP_SERVER', 'http://www.componentbroker.net');

define('HTTPS_SERVER', 'https://www.componentbroker.net');

define('ENABLE_SSL', true);

define('HTTP_COOKIE_DOMAIN', 'www.componentbroker.net');

define('HTTPS_COOKIE_DOMAIN', 'www.componentbroker.net');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

 

Anyone have a clue?

Posted

Can you have the certificate reissued? After reading the SSL section in the knowledge base, I got a certificate without the "www" qualifier... only to find on installation that that type of certificate was not supported. Having the certificate reissued with the "www" was a simple procedure and fixed the problem.

Archived

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

×
×
  • Create New...