HTTPS

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
Hi,
I installed a SSL certificate on IIS. Now what do I have to do in NopCommerce to use HTTPS rather than HTTP?
Thank you
7 years ago
Hello,

You should edit your store information from Administration -> Configuration -> Stores. You will need to check the "SSL enabled" setting and add a secure URL in the "Secure URL" setting.
You can also check the "Force SSL for all site pages" setting in Administration -> Configuration -> Settings -> General Settings to force SSL for the entire site.

Regards,
Anton
7 years ago
Hi Anton,
yes, but it seems that NopCommerce forces a redirection of HTTPS url calls to HTTP standard url.
So, in Store Table, I have this:

Url: http://www.mysite.it/
SSLEnabled : 1
SecureUrl: https://www.mysite.it/
Hosts: mysite.it,www.mysite.it

In this way, customers shop works still in HTTP, while administration site tries to load in HTTPS and fails.
If securitysettings.forcesslforallpages is set to 1, even customers shop doesn't work.

What's wrong? Do I have to set Urt to NULL?

Thank you
7 years ago
Did you add the https binding to the site in IIS?

https://www.iis.net/learn/manage/configuring-security/how-to-set-up-ssl-on-iis#IISManager
7 years ago
Solved... the 443 was closed at firewall level!
Thanks to everybody!!!
3 years ago
Looking for some advice on HTTPS set up. I had the cert installed on my server today . I selected the use ssl option in store configuration. Since then my website is not accessible. Every page gives me 'This site can’t be reached'. I changed the value in the database for sslEnabled back to false. I can now browse the website, but I can't browse any account related pages e.g. my account, or admin page. Has anyone else had this issue or know how I could solve this?

Thanks
3 years ago
It is a very common problem if you search the forum
Did you try restarting your server
Clear the browser cache
3 years ago
Yidna wrote:
It is a very common problem if you search the forum
Did you try restarting your server
Clear the browser cache


Hi, yes I have searched the forum, but a lot that I found were many years old and not .net core version of nopcommerce.

I have restarted app pool after selecting SSL. I have just come across a post that mentioned cookies may be causing issue. I will try in the morning to enable all SSL/HTTPS and clear cookies and see if that works..

Do you have any other suggestions? Thanks
3 years ago
Be sure that in Admin > Stores, your URL looks like (including the trailing /)

https://www.yourdomain.xxx/
3 years ago
New York wrote:
Be sure that in Admin > Stores, your URL looks like (including the trailing /)

https://www.yourdomain.xxx/


Thanks, I have already checked this one and it did not make a difference.

Do you think it could be caused because I am using a sub domain? e.g. i am using test.mydomain.co.uk...
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.