TheComputerGuy Posted April 1, 2004 Share Posted April 1, 2004 How do I get the OsCommerce software to recognize a SSL certificate? I am wanting to get one installed but not sure how to put it on the software. Thanks for your time and help. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 2, 2004 Share Posted April 2, 2004 in includes->configure.php define('HTTPS_SERVER', 'https://www.yoursite.com'); define('ENABLE_SSL', true); done job! Quote Link to comment Share on other sites More sharing options...
TheComputerGuy Posted May 22, 2004 Author Share Posted May 22, 2004 I got an error when I added that to my configure.php. I really hoped this would work. Quote Link to comment Share on other sites More sharing options...
stevel Posted May 22, 2004 Share Posted May 22, 2004 Well, it does take a bit more than that. First, you have to consult with your host to see how SSL certificates are to be installed, if it can be done at all. Each host service varies a bit in how this is done. Then you have to determine what the form of your HTTPS URL is. If you have indeed purchased and installed your own certificate, then the change Nimmit suggested is what comes next. If you are using "shared SSL", you will have to ask your host what the proper format is. Quote Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
TheComputerGuy Posted May 22, 2004 Author Share Posted May 22, 2004 I am using a shared SSL. My host gave it to me as this https://domain.com/~username/ of account So wouldn't I just replace the names with what I have, and go from there to use that modification? Quote Link to comment Share on other sites More sharing options...
stevel Posted May 22, 2004 Share Posted May 22, 2004 Yes, leaving off the trailing slash. Quote Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
TheComputerGuy Posted May 22, 2004 Author Share Posted May 22, 2004 Thanks Stevel! When I did that...I go to Press Check out. It takes me to the front page again, with like all the images missing. www.alleywaymusic.com is the site. Check it out if you get time. Thanks for your help so far. Quote Link to comment Share on other sites More sharing options...
stevel Posted May 22, 2004 Share Posted May 22, 2004 Looks as if you have turned off SSL on this site, so there's nothing to look at. At one time in the past my host used the ~username syntax for SSL and I never got it to work properly with osC. I've seen others manage it, though... Does your host require a separate folder for "secure" files? Quote Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
TheComputerGuy Posted May 23, 2004 Author Share Posted May 23, 2004 I installed the FORCE SSL, and the STS template system, I am going to redo it all and then try this. My host just showed me other sites that have the shared SSL working. Quote Link to comment Share on other sites More sharing options...
Guest Posted May 23, 2004 Share Posted May 23, 2004 At one time in the past my host used the ~username syntax for SSL and I never got it to work properly with osC. I set one up last week - I put the /~sitename/ in the DIR_WS_HTTPS_CATALOG path rather than the HTTPS_SERVER - the same with the HTTPS_COOKIE_DOMAIN and HTTPS_COOKIE_PATH - worked just fine :) I look at it this way - something like /~sitename/ is not truly a part of a 'domain' Matti Quote Link to comment Share on other sites More sharing options...
TheComputerGuy Posted May 23, 2004 Author Share Posted May 23, 2004 I got it to work! It was all in the config!! Thanks Johnson and Stevel! Now I have another slight problem. It will not allow me to add just credit card payments. I want people to just send me a credit card payment so I can swipe their cards on my machine at my phyiscal store. How do I enable that? Quote Link to comment Share on other sites More sharing options...
stevel Posted May 23, 2004 Share Posted May 23, 2004 How does it "not allow" you? Enable the credit card module in admin - that's what you want. I suggest you also set the option for sending split credit card number e-mails. Quote Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
TheComputerGuy Posted May 23, 2004 Author Share Posted May 23, 2004 I think I got it working finally...Much appreciated. I am not sure how to setup the split credit card number thing you mention? Quote Link to comment Share on other sites More sharing options...
stevel Posted May 23, 2004 Share Posted May 23, 2004 In the modules admin panel, "edit" the credit card module. One of the fields you can set is an e-mail address for "split card information". Fill this in with your e-mail address. Then, when a customer places an order, you will get an e-mail with the order number and middle 8 digits of the card number. The rest of the number and other info will be stored in the database. This way, not all the card info is in one place and this provides some protection against data theft. Do be sure to secure your admin panel with .htaccess. Quote Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
monkeypoop Posted May 25, 2004 Share Posted May 25, 2004 Ok...I have a similar problem with a slight twist....any help would qwell my insanity...i am attempting to use the shared ssl from my host wich is demonstrated below in the code, but when i do the images are not present on the secure page...test is ok, but no stylesheet or images are appearing...i have done all different tweaks to the config to no avail so maybe someone else has encountered this issue....here is my present code: define('HTTP_SERVER', 'http://redlinevegas.com'); define('HTTPS_SERVER', 'https://www.ssl119.securednshost.com/~redlinev'); define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'http://redlinevegas.com'); define('HTTPS_COOKIE_DOMAIN', 'https://www.ssl119.securednshost.com/~redlinev'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/store/'); define('DIR_WS_HTTPS_CATALOG', '/~redlinev/store/'); define('DIR_WS_IMAGES', '/store/images/'); define('DIR_WS_ICONS', '/store/icons/'); define('DIR_WS_INCLUDES', 'includes/'); when i click on an image i get these properties: https://www.ssl119.securednshost.com/store/.../oscommerce.gif when i tweak it to https://www.ssl119.securednshost.com/~redli.../oscommerce.gif the image is visible.... ANY SUGGESTIONS???? :) thanks mark Quote Link to comment Share on other sites More sharing options...
stevel Posted May 25, 2004 Share Posted May 25, 2004 You want this instead: define('HTTPS_SERVER', 'https://www.ssl119.securednshost.com'); Quote Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
monkeypoop Posted May 25, 2004 Share Posted May 25, 2004 Thanks steve for the reply but your suggestion didn't do the trick to get the image path correct.... here is the code i changed it to.... define('HTTP_SERVER', 'http://redlinevegas.com'); define('HTTPS_SERVER', 'https://www.ssl119.securednshost.com'); define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'http://redlinevegas.com'); define('HTTPS_COOKIE_DOMAIN', 'https://www.ssl119.securednshost.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/store/'); define('DIR_WS_HTTPS_CATALOG', '/~redlinev/store/'); define('DIR_WS_IMAGES', '/store/images/'); define('DIR_WS_ICONS', '/store/icons/'); define('DIR_WS_INCLUDES', 'includes/'); for some reason any secure page has the image path without the "/~redlinev/" i have to lead it to my images directory, but i do not know where in the config file... thanks mark Quote Link to comment Share on other sites More sharing options...
stevel Posted May 25, 2004 Share Posted May 25, 2004 I'm confused - it looks as if you made exactly the change I suggested. I also note that the COOKIE_DOMAIN defines are wrong. These should read: define('HTTP_COOKIE_DOMAIN', 'redlinevegas.com'); define('HTTPS_COOKIE_DOMAIN', 'securednshost.com'); Quote Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
monkeypoop Posted May 25, 2004 Share Posted May 25, 2004 GOT THE LITTLE BOOGER!!!! I made the changes you suggested , but it didn't get my images so i changed a line to this: define('DIR_WS_IMAGES', '/~redlinev/store/images/'); It didn't make any sense but it works....magic i guess... thanks for the help!!! :) mark Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.