How to SSL bind an existing Host Name Site Collection - SharePoint 2013

Sengupta, Amrita 26 Reputation points
2021-02-05T15:02:02.727+00:00

Hello All,

I have a cross site publishing web application, which needs to be SSL bound.
The publishing site however, fetches the resources (like images, documents etc) from a host named site collection in the same web app.

When I SSL bind the publishing site, it is giving issues (there are errors that the entire site is not SSL bound).
Hence the Host Named Site Collection also needs SSL binding.

I am not getting enough references on how to change/update the binding of an existing Host Named Site collection.

Can someone provide me pointers on how this can be achieved?

SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,971 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ChelseaWu-MSFT 6,331 Reputation points
    2021-02-08T03:08:01.877+00:00

    You will need to add IP address to the web applications IIS site bindings and then do the SSL Binding in IIS for existing Host Named Site Collections.
    Here is the sample PowerShell script to add IP bindings for a web application:

    Import-Module WebAdministration  
    # add empty binding to webapp on IP 192.168.10.20  
    New-WebBinding -Name 'webapp' -IPAddress '192.168.10.20' -HostHeader ''   
    Sleep 60  
    # remove existing binding webapp.contoso.com from existing web application  
    Get-WebBinding -Name 'webapp' -HostHeader 'webapp.contoso.com' | Remove-WebBinding  
    

    For detailed information, please check out the articles here with full tutorials:
    Implementing SSL with PowerShell for existing SharePoint 2013 farm – Part 1.
    SharePoint 2013 Host Named Site Collections over SSL.

    *Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link. *


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    **Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. **


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.