Introduction
In SharePoint, most developers must be aware of Content-Type HUB. Some of them also might know how to Create Content Type HUB in the Same Web Application. But here, I have explained how to create a content type HUB on one server and consume it in another sever.
Note
Publishing Farm (DEFRAVMDFUSWK83) Consuming Farm (Local Server)
Check the following before starting Consuming CTH
On Consuming Farm - Central Admin - Application Management - Service Application - Managed Service Application - Select Managed Metadata Service - Publish (in Ribbon) - Click on the link (Click here to add a relationship with another Farm)
Note
If any publishing trust presents over there, delete it.

On Publishing Farm - Central Admin - Application Management - Service Application - Managed Service Application - Select Managed Metadata Service - Publish (in Ribbon) - Click on the link (Click here to add a relationship with another farm)
Steps To Consuming CTH
Creation of Root and STS Certificates on Consuming Farm
- In the consuming farm go to the Start menu.
- Go to SharePoint2013 Management Shell and select Run as Administrator.
- In the command prompt, type each of the following commands.
- In the following script put the exact path where you want to store your certificates With proper Certificate Name within Double coats.
- Here 022 is added at the end of certificate only for the identity of a specific Certificate on publishing Farm.
- $rootCert = (Get-SPCertificateAuthority).RootCertificate
- $rootCert.Export("Cert") | Set-Content "C:\ConsumingFarmRootOS022.cer" -Encoding byte
To export the STS certificate from the consuming farm:
- In the Command Prompt, type each of the following commands
- $stsCert = (Get-SPSecurityTokenServiceConfig).LocalLoginProvider.SigningCertificate
- $stsCert.Export("Cert") | Set-Content "C:\ConsumingFarmSTSOS022.cer" -Encoding byte
Creation of Root Certificate on Publishing Farm
Kindly check if the publishing certificate already exists or not on the publishing farm.
If it exists, copy that and past it on your local (Consuming Farm) where consuming certificates are already stored.
If not, then follow the below steps:
- In the Command Prompt, type each of the following commands.
- In the following script put the exact path where you want to store your certificate With proper Certificate Name within Double coats.
- Here 022 is not added at the end of the certificate because the identity of the Publishing Certificate on Every Consuming Farm is the same.
- $rootCert = (Get-SPCertificateAuthority).RootCertificate
- $rootCert.Export("Cert") | Set-Content "C:\PublishingFarmRootOS.cer" -Encoding byte




Join the conversation! Your thoughts help the community grow.