brianlala / AutoSPInstaller

Automated SharePoint 2010/2013/2016/2019/SE PowerShell-based installation script.
https://autospinstaller.com
MIT License
171 stars 81 forks source link

SSL Offloading and LB with AutoSPInstaller #2

Open rg54 opened 7 years ago

rg54 commented 7 years ago

Hello,

I've SSL Offloading subject has already been discussed previously here, but I am contronted with the same situation, and I think this additional information may be interesting to discuss.

As mongey said in previous thread, usually with SSL offloading, the SharePoint Web Application is fully configured as HTTP, and the Load Balancer change the URL to HTTPS.

But in this case, links in SharePoint content will be HTTP, not HTTPS. And if some reverse proxies can replace HTTP links to HTTP, many load balancers can't (Radware Alton, I think, for example).

We can still configure systematic HTTP to HTTPS redirection on LB, but technically, that's not a panacea, just a workaround with much useless redirection traffic.

As far as I know, the only "clean" solution to avoid this problem is to have this in SharePoint AAM :

Even if it may seem weird, it works : SharePoint redirects user to HTTPS at first connection to HTTP, and all links in content will be HTTPS.

Unluckily, this case isn't managed by AutoSPInstaller today (with 3.99.60) The only workaround I've found is to create webapp on HTTP 80, and then make this change in AAM in GUI.

And even in this case, I wasn't able to use AutoSPInstaller later to re-create UserProfile, because it has crashed trying to re-create MySite Host site collection, . I've made the customization to avoid that problem (in attachment).

A last word : many many thanks for this wonderful tool and the time it has made me save !! :)

AutoSPInstallerFunctionsCustom.zip

jn-bedag commented 4 years ago

Same problem here. Trying to fix it too. We need SSL Offloading.
What was your approach? Unforunately I don't "unterstand" your changes in your customization because it's on three years old code.

@brianlala: how do we want to fix this? Some ideas:

Which approach you'd like to take? Maybe I can support with some code.

Thx

brianlala commented 4 years ago

Best practice? Use SSL bridging instead. Secure all the way through, and no need for different AAMs. Use a self-signed cert on the WFEs if you must, then configure the HLB to trust it. I don't plan on adding this support to AutoSPInstaller as it's essentially in maintenance mode at this point and my focus is on DSC these days.

Cheers