{"id":2842,"date":"2010-10-15T07:02:14","date_gmt":"2010-10-15T07:02:14","guid":{"rendered":"http:\/\/jellywp.com\/theme\/entron\/demo5\/?p=2842"},"modified":"2010-10-15T07:02:14","modified_gmt":"2010-10-15T07:02:14","slug":"implementing-ssl-on-sharepoint-2010-and-iis-7-and-forcing-http-request-to-redirect-to-https","status":"publish","type":"post","link":"https:\/\/teamwp.mydevfactory.com\/abhisek-saha\/aqltech\/implementing-ssl-on-sharepoint-2010-and-iis-7-and-forcing-http-request-to-redirect-to-https\/","title":{"rendered":"Implementing SSL on SharePoint 2010 and IIS 7 and forcing http request to redirect to https"},"content":{"rendered":"<p>1. The certificate is already imported in IIS<br \/>\n2. I am using a wildcard cert here but I believe it will be pretty much the same for other types of certs as well.<br \/>\n3. Port 443 is configured to point to this web application also.<br \/>\n4.web applications are using host headers<\/p>\n<p>Open up IIS 7.0<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/teamwp.mydevfactory.com\/abhisek-saha\/aqltech\/wp-content\/uploads\/2018\/04\/1.jpg\" alt=\"\" width=\"640\" height=\"767\" class=\"alignnone size-full wp-image-3501\" \/>Assumptions:<\/p>\n<p>Right Click on the website and select \u201cEdit Bindings\u201d which opens up the windows below<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/teamwp.mydevfactory.com\/abhisek-saha\/aqltech\/wp-content\/uploads\/2016\/12\/2-1-300x140.jpg\" alt=\"\" width=\"300\" height=\"140\" class=\"alignnone size-medium wp-image-3478\" \/><\/p>\n<p>Click on add and Add https binding, select the SSL certificate in my case it is a wildcard cert<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/teamwp.mydevfactory.com\/abhisek-saha\/aqltech\/wp-content\/uploads\/2016\/12\/3-300x163.jpg\" alt=\"\" width=\"300\" height=\"163\" class=\"alignnone size-medium wp-image-3479\" \/><\/p>\n<p>Hit on OK<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/teamwp.mydevfactory.com\/abhisek-saha\/aqltech\/wp-content\/uploads\/2016\/12\/4-300x140.jpg\" alt=\"\" width=\"300\" height=\"140\" class=\"alignnone size-medium wp-image-3480\" \/><\/p>\n<p>Now let&#8217;s change the port 80 to any other port, let&#8217;s say 8026<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/teamwp.mydevfactory.com\/abhisek-saha\/aqltech\/wp-content\/uploads\/2016\/12\/5-300x140.jpg\" alt=\"\" width=\"300\" height=\"140\" class=\"alignnone size-medium wp-image-3481\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/teamwp.mydevfactory.com\/abhisek-saha\/aqltech\/wp-content\/uploads\/2016\/12\/6-300x163.jpg\" alt=\"\" width=\"300\" height=\"163\" class=\"alignnone size-medium wp-image-3482\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/teamwp.mydevfactory.com\/abhisek-saha\/aqltech\/wp-content\/uploads\/2016\/12\/7-300x140.jpg\" alt=\"\" width=\"300\" height=\"140\" class=\"alignnone size-medium wp-image-3483\" \/><\/p>\n<p><strong>Create a Port80 to Port 443 Redirector Dummy Website:<\/strong><\/p>\n<p>Select the Sites node under IIS, right click and select properties<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/teamwp.mydevfactory.com\/abhisek-saha\/aqltech\/wp-content\/uploads\/2016\/12\/8-265x300.jpg\" alt=\"\" width=\"265\" height=\"300\" class=\"alignnone size-medium wp-image-3484\" \/><\/p>\n<p>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<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/teamwp.mydevfactory.com\/abhisek-saha\/aqltech\/wp-content\/uploads\/2016\/12\/9-300x295.jpg\" alt=\"\" width=\"300\" height=\"295\" class=\"alignnone size-medium wp-image-3485\" \/><\/p>\n<p>So this setup means that all request for my test1..com over HTTP will be coming to this web application, now let&#8217;s configure redirection for these requests coming over HTTP to https. Select the dummy web application and select \u2018Http Redirect\u2019 on the right-hand side pane.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/teamwp.mydevfactory.com\/abhisek-saha\/aqltech\/wp-content\/uploads\/2016\/12\/10-300x218.jpg\" alt=\"\" width=\"300\" height=\"218\" class=\"alignnone size-medium wp-image-3486\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/teamwp.mydevfactory.com\/abhisek-saha\/aqltech\/wp-content\/uploads\/2016\/12\/11-300x218.jpg\" alt=\"\" width=\"300\" height=\"218\" class=\"alignnone size-medium wp-image-3487\" \/><\/p>\n<p><strong>Sharepoint configuration:<\/strong><\/p>\n<p>Go to CA\\ AAM\\ hit on Edit Public URLs and enter the following which is<br \/>\nDefault: https:\/\/test1..com<br \/>\nIntranet: http:\/\/test1..com<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/teamwp.mydevfactory.com\/abhisek-saha\/aqltech\/wp-content\/uploads\/2016\/12\/12-300x234.jpg\" alt=\"\" width=\"300\" height=\"234\" class=\"alignnone size-medium wp-image-3488\" \/><\/p>\n<p> Save it to look like this.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/teamwp.mydevfactory.com\/abhisek-saha\/aqltech\/wp-content\/uploads\/2016\/12\/13-300x219.jpg\" alt=\"\" width=\"300\" height=\"219\" class=\"alignnone size-medium wp-image-3489\" \/><\/p>\n<p>Now try accessing HTTP and it should redirect to https!<br \/>\nBut this will break search and Excel services let&#8217;s go fix that up.<br \/>\nGo to CA\\Application management \\ Manage Service applications\\<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/teamwp.mydevfactory.com\/abhisek-saha\/aqltech\/wp-content\/uploads\/2016\/12\/14-300x234.jpg\" alt=\"\" width=\"300\" height=\"234\" class=\"alignnone size-medium wp-image-3490\" \/><\/p>\n<p>Click on the instance of \u201cSearch Service Application\u201d that is indexing your website.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/teamwp.mydevfactory.com\/abhisek-saha\/aqltech\/wp-content\/uploads\/2016\/12\/15-300x234.jpg\" alt=\"\" width=\"300\" height=\"234\" class=\"alignnone size-medium wp-image-3491\" \/><\/p>\n<p>Click on the \u201ccontent Sources\u201d on the left-hand side<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/teamwp.mydevfactory.com\/abhisek-saha\/aqltech\/wp-content\/uploads\/2016\/12\/16-300x234.jpg\" alt=\"\" width=\"300\" height=\"234\" class=\"alignnone size-medium wp-image-3492\" \/><\/p>\n<p>Click on the content source that has your web application, in my case it is \u201cLocal SharePoint sites\u201d.<br \/>\nIn here change your website to use https instead of HTTP and then start a new Crawl by check marking \u201cStart Full Crawl of this content source\u201d<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/teamwp.mydevfactory.com\/abhisek-saha\/aqltech\/wp-content\/uploads\/2016\/12\/17-300x266.jpg\" alt=\"\" width=\"300\" height=\"266\" class=\"alignnone size-medium wp-image-3493\" \/><\/p>\n<p>Check the Crawl Log to make sure there are no errors.<\/p>\n<p><strong>Excel services: let&#8217;s fix this up, I require an https trusted location to store files.<\/strong><br \/>\nGo to CA\\Application Management\\ Manage service application and select the Excel Service Application instance to which your web application is associated with.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/teamwp.mydevfactory.com\/abhisek-saha\/aqltech\/wp-content\/uploads\/2016\/12\/18-300x266.jpg\" alt=\"\" width=\"300\" height=\"266\" class=\"alignnone size-medium wp-image-3494\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/teamwp.mydevfactory.com\/abhisek-saha\/aqltech\/wp-content\/uploads\/2016\/12\/19-300x210.jpg\" alt=\"\" width=\"300\" height=\"210\" class=\"alignnone size-medium wp-image-3495\" \/><\/p>\n<p>Click Trusted File Locations to open it up<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/teamwp.mydevfactory.com\/abhisek-saha\/aqltech\/wp-content\/uploads\/2016\/12\/20-300x199.jpg\" alt=\"\" width=\"300\" height=\"199\" class=\"alignnone size-medium wp-image-3496\" \/><\/p>\n<p>Click on Add Trusted file Location and enter the following :<br \/>\nAddress: https<br \/>\nLocation type: Microsoft SharePoint Foundation<br \/>\nTrusted Children: checkmark it.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/teamwp.mydevfactory.com\/abhisek-saha\/aqltech\/wp-content\/uploads\/2016\/12\/21-300x265.jpg\" alt=\"\" width=\"300\" height=\"265\" class=\"alignnone size-medium wp-image-3497\" \/><\/p>\n<p>Confirm that excel files are opening up and search is working as well<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/teamwp.mydevfactory.com\/abhisek-saha\/aqltech\/wp-json\/wp\/v2\/posts\/2842"}],"collection":[{"href":"https:\/\/teamwp.mydevfactory.com\/abhisek-saha\/aqltech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/teamwp.mydevfactory.com\/abhisek-saha\/aqltech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/teamwp.mydevfactory.com\/abhisek-saha\/aqltech\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/teamwp.mydevfactory.com\/abhisek-saha\/aqltech\/wp-json\/wp\/v2\/comments?post=2842"}],"version-history":[{"count":0,"href":"https:\/\/teamwp.mydevfactory.com\/abhisek-saha\/aqltech\/wp-json\/wp\/v2\/posts\/2842\/revisions"}],"wp:attachment":[{"href":"https:\/\/teamwp.mydevfactory.com\/abhisek-saha\/aqltech\/wp-json\/wp\/v2\/media?parent=2842"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/teamwp.mydevfactory.com\/abhisek-saha\/aqltech\/wp-json\/wp\/v2\/categories?post=2842"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/teamwp.mydevfactory.com\/abhisek-saha\/aqltech\/wp-json\/wp\/v2\/tags?post=2842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}