BravehearT Posted March 24, 2006 Posted March 24, 2006 Hi there Can anyone advise how I configure OSC to use a shared SSL Certificate. My hosting service offers the use of a SSL certificate and when I go into OSC admin it doesn't show as being secured by SSL. Thanks Ronnie
Jack_mcs Posted March 24, 2006 Posted March 24, 2006 In the includes/configure.php file, their is a setting to enable ssl. Set it to true (it is now false). You also need to add the url for the shared ssl to the appropriate places (marked as https). There are two if them. If you have problems, please post your configure file here (without sensitive data). Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
BravehearT Posted March 24, 2006 Author Posted March 24, 2006 In the includes/configure.php file, their is a setting to enable ssl. Set it to true (it is now false). You also need to add the url for the shared ssl to the appropriate places (marked as https). There are two if them. If you have problems, please post your configure file here (without sensitive data). Jack Thanks Jack - Worked a treat.
Guest Posted March 25, 2006 Posted March 25, 2006 In the includes/configure.php file, their is a setting to enable ssl. Set it to true (it is now false). You also need to add the url for the shared ssl to the appropriate places (marked as https). There are two if them. If you have problems, please post your configure file here (without sensitive data). Jack Hi Jack, I have been reading the posts for installing a shared SSL and found your reply to same question. I have tried to do as you suggested for above and am not quite sure if I have done the right thing. My configure file does not seem to have the COOKIE_DOMAIN_HTTPS section. Please forgive me as I am extremely illiterate when it comes to this computer language. My file is as follows, Released under the GNU General Public License */ // define our webserver variables // FS = Filesystem (physical) // WS = Webserver (virtual) define('HTTP_SERVER', 'http://www.spicksandspecks.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://www.spicksandspecks.com'); define('HTTPS_CATALOG_SERVER', 'https://securespicksandspecks.ourssl.net/'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs) define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/catalog/'); define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); 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 our database connection define('DB_SERVER', ''); define('DB_SERVER_USERNAME', 'mysql'); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', 'osCommerce'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', ''); ?> I would appreciate any help and I apologise in advance if I have not followed procedure here as I am new to all this, Thanks, b.
Jack_mcs Posted March 25, 2006 Posted March 25, 2006 There are two configure.php files, one for the shop and one for admin. The one above is for admin so it won't help you. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Guest Posted March 27, 2006 Posted March 27, 2006 There are two configure.php files, one for the shop and one for admin. The one above is for admin so it won't help you. Jack Thanks for the reply Jack. I located the file you mentioned and going by notes in the knowledge base adjusted my file accordingly, or so I thought. Still no lock, any suggestions would be greatly appreciated. define('HTTP_SERVER', 'http://www.spicksandspecks.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://securespicksandspecks.ourssl.net/'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.spicksandspecks.com'); define('HTTPS_COOKIE_DOMAIN', 'securespicksandspecks.ourssl.net/'); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', '/catalog/'); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/catalog/'); define('DIR_WS_IMAGES', 'images/'); Also, do I leave the admin's configure.php file as is or change it too. I visted my site by manually typing the https:// addresss and it showed the "do you wish to display secure and nonsecure images" box, but no lock appeared. By reading these forums, is the only sure fire way around this lock not appearing ditching the shared SSL and purchasing your own. Thanks in advance, B.
custodian Posted March 27, 2006 Posted March 27, 2006 remove the slash at the end of define('HTTPS_SERVER', 'https://securespicksandspecks.ourssl.net/'); to look like define('HTTPS_SERVER', 'https://securespicksandspecks.ourssl.net'); also from define('HTTPS_SERVER', 'https://securespicksandspecks.ourssl.net/'); define('HTTPS_SERVER', 'https://securespicksandspecks.ourssl.net'); I believe the admin is only optional, some do not like the added load, but I choose to use it. My Contributions Henry Smith
Recommended Posts
Archived
This topic is now archived and is closed to further replies.