Author Topic: SSL and admin section  (Read 3771 times)

Offline buddahboy

  • Full Member
  • ***
  • Posts: 234
  • Karma: +32/-0
    • View Profile
SSL and admin section
« on: December 05, 2013, 11:25:10 AM »
Good day everybody

I installed an SSL cert and changing AbanteCart over to use SSL took all of 30 seconds and front end works perfectly - thank you for such a clean job of that function. 

I note that my admin section is not under SSL - am I missing something (once again LOL)?  I'd like to have it secured as well. 

Also, I have heard from a couple other people that after cert was installed they could not enter admin area - is there some work around in such cases?  I saw a couple of posts but didn't really apply. 

Thanks much in advance
Ron
AbanteCart is one hell of a shopping cart.  Donate once in a while and keep the development plus support going.  --  That's my opinion and I'm stickin' to it!

Offline DavidLIR

  • Jr. Member
  • **
  • Posts: 86
  • Karma: +7/-0
    • View Profile
    • Love is Real
Re: SSL and admin section
« Reply #1 on: December 05, 2013, 11:51:29 AM »
Hi Ron,

Thanks for your post.  I was just getting ready to post myself on this issue. 
I have had my webhosting service install the ssl on my website.  It is Rapid SSL  by Geotrust.

First, let me say that I am one you speak of...I cannot get into my admin section after they installed the ssl certs...etc   I get a 404 not found error on the page either for my site or for my admin...I guess it makes sense because they are all installed under http://mydomain.com/store ..
If I had only known I would have checked the little box to turn the ssl on before they installed the ssl and I believe that would have solved this problem...as it is, my website is down and I can't get in to my admin either...major problem!!

I can get into my files through my c-panel... Is there a way I can access the file that this ssl setting is in for the admin section through the c-panel and edit the file there to turn on the ssl?

I would need to know what files to look for and how to find them....and how to change them

If someone could tell me how to do this we might be able to solve it...

Thank you
David
Love is Real....All Else is Illusion

Offline buddahboy

  • Full Member
  • ***
  • Posts: 234
  • Karma: +32/-0
    • View Profile
Re: SSL and admin section
« Reply #2 on: December 05, 2013, 12:05:10 PM »
Hey David - sounds like a real mess!  I also installed a Rapid SSL, since my payments are all PayPal I just wanted the customers to feel confident that their personal info is secure. 

What I would do in your place is try asking the host to delete the ssl for now and see if you can get back into the admin area switch the settings. If that works then have them re-install the cert.  Other than that I really don't know - even after checking the forum. 

I do hope that the developers will respond here as well - I wonder if there is a quick and easy fix in the database, hmmm.  I'm still looking around and will PM you if/when I get some other info unless Team AbanteCart get here first. 

All the best
Ron
 
AbanteCart is one hell of a shopping cart.  Donate once in a while and keep the development plus support going.  --  That's my opinion and I'm stickin' to it!

Offline DavidLIR

  • Jr. Member
  • **
  • Posts: 86
  • Karma: +7/-0
    • View Profile
    • Love is Real
Re: SSL and admin section
« Reply #3 on: December 05, 2013, 12:52:58 PM »
Ron,
Thanks for the quick response.

I was about 10 min too soon...my hosting service did get it so I can get back in to the site again...just received an email from them.

however, the page looks strange....all the nice stuff pictures,  slider were gone...
I had to reset my password to get back in to admin...turned on the ssl and changed the address for the site to the correct ssl version and voila it works now...

I have asked my hosting tech guys if they can tell me what they did to set it up...if I find out anything I will post it...
There are some other issues that I will need help with on this...as soon as I test out everything...

Thanks,
David
Love is Real....All Else is Illusion

Offline DavidLIR

  • Jr. Member
  • **
  • Posts: 86
  • Karma: +7/-0
    • View Profile
    • Love is Real
Re: SSL and admin section
« Reply #4 on: December 05, 2013, 02:07:17 PM »
one more thing I need help with.
 
the following is what Lee sent me...to set it up so people can get to the ssl site...
I need help to know how to do this...

Thanks,
David


"""Yes, the cert treats each as individual domains - with the www  is one,  without the www is another. Choose either one you want for your cert, you will be able to redirect or use rewrite to take make it transparent to your visitors.
 Clearly, you want visitors to be able to use an SSL connection whether they visit example.com or www.example.com. To enable this functionality, you can use Apache rewrite rules in a custom .htaccess file. 

 The following lines demonstrate how to redirect visitors who enter a domain name without the www prefix to a secure connection. With these settings enabled on your web site, visitors who go to example.com or www.example.com (where example.com represents your domain) both obtain an SSL connection:

RewriteEngine on
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
Love is Real....All Else is Illusion

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1814
  • Karma: +264/-11
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: SSL and admin section
« Reply #5 on: December 05, 2013, 02:23:59 PM »
if you turn on setting Use SSL all your customers will be redirected to https on checkout process pages and login page.
But you should to set up ssl support on your webserver first.
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline llegrand

  • Hero Member
  • *****
  • Posts: 1534
  • Karma: +413/-3
    • View Profile
Re: SSL and admin section
« Reply #6 on: December 05, 2013, 03:03:13 PM »
Hi David,

Just to be sure you caught what abolabo indicated - he's saying the switch for turning on the SSL within the Admin panel should take care of the rewrites that I posted.  So you can ignore those instructions.

Lee



Offline layer

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: SSL and admin section
« Reply #7 on: April 12, 2014, 02:14:31 PM »
if you turn on setting Use SSL all your customers will be redirected to https on checkout process pages and login page.
But you should to set up ssl support on your webserver first.

and about admin section? no ssl is active...
« Last Edit: April 12, 2014, 02:23:42 PM by layer »

Offline buddahboy

  • Full Member
  • ***
  • Posts: 234
  • Karma: +32/-0
    • View Profile
Re: SSL and admin section
« Reply #8 on: April 12, 2014, 02:17:57 PM »
yeah, me too
AbanteCart is one hell of a shopping cart.  Donate once in a while and keep the development plus support going.  --  That's my opinion and I'm stickin' to it!

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1814
  • Karma: +264/-11
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: SSL and admin section
« Reply #9 on: April 14, 2014, 02:24:50 PM »
[quote ]
and about admin section? no ssl is active...
[/quote]

abantecart can not define is web-server support ssl, because ssl-layer is lower then data-layer. php works on data-layer inside ssl-layer. That's why abantecart can not to enable ssl-support in settings as default.
And all requests for admin side have no any difference with storefront side. We use special variable "s" with secret value to recognize request.
So... you should write special rule for mod_rewrite in your .htaccess file to redirect all requests with 's' var to https.

something like this

Code: [Select]
RewriteCond %{QUERY_STRING} s=(.*)  [NC]
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

paste it in your .htaccess file after line with
Code: [Select]
RewriteBase /
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

 

Powered by SMFPacks Social Login Mod