Implementing SSL on SharePoint 2010 and IIS 7 and forcing http request to redirect to https

1. The certificate is already imported in IIS
2. I am using a wildcard cert here but I believe it will be pretty much the same for other types of certs as well.
3. Port 443 is configured to point to this web application also.
4.web applications are using host headers

Open up IIS 7.0
Assumptions:

Right Click on the website and select “Edit Bindings” which opens up the windows below

Click on add and Add https binding, select the SSL certificate in my case it is a wildcard cert

Hit on OK

Now let’s change the port 80 to any other port, let’s say 8026

Create a Port80 to Port 443 Redirector Dummy Website:

Select the Sites node under IIS, right click and select properties

Enter the below values, I just make it point to the Root IIS folder, this is just a dummy website and does not have any files in it. Hit on OK

So this setup means that all request for my test1..com over HTTP will be coming to this web application, now let’s configure redirection for these requests coming over HTTP to https. Select the dummy web application and select ‘Http Redirect’ on the right-hand side pane.

Sharepoint configuration:

Go to CA\ AAM\ hit on Edit Public URLs and enter the following which is
Default: https://test1..com
Intranet: http://test1..com

Save it to look like this.

Now try accessing HTTP and it should redirect to https!
But this will break search and Excel services let’s go fix that up.
Go to CA\Application management \ Manage Service applications\

Click on the instance of “Search Service Application” that is indexing your website.

Click on the “content Sources” on the left-hand side

Click on the content source that has your web application, in my case it is “Local SharePoint sites”.
In here change your website to use https instead of HTTP and then start a new Crawl by check marking “Start Full Crawl of this content source”

Check the Crawl Log to make sure there are no errors.

Excel services: let’s fix this up, I require an https trusted location to store files.
Go to CA\Application Management\ Manage service application and select the Excel Service Application instance to which your web application is associated with.

Click Trusted File Locations to open it up

Click on Add Trusted file Location and enter the following :
Address: https
Location type: Microsoft SharePoint Foundation
Trusted Children: checkmark it.

Confirm that excel files are opening up and search is working as well

Share

Leave a Reply

Your email address will not be published. Required fields are marked *