In this article I will explain the step by step process to develop a provider Hosted App (PHA) in SharePoint On-premise.
Introduction This is a quick look at On Premise SharePoint 2013 environments. I decided to write this article because I knew the complexity of this PHA Configuration. Before jumping in to the PHA configuration, it’s worthwhile to quickly recap what are Provider Hosted Apps. Provider Host App: The provider Host App is hosted outside of SharePoint. The provider-hosted high trust app model is a powerful tool which should be utilized when the situation either demands custom managed code or when a low-trust solution does not suffice or SharePoint Host app does not do. It has its own infrastructure and the Provider is responsible for keeping it running. They allow you to use Server Side code and use the .NET CSOM (not the Microsoft.SharePoint.dll.) Image Source. Why Provider Host App?
Before you develop a provider Host App you may need to do some prerequisites,
For SharePoint you must have the following service applications provisioned and started:
High Trust Certificates: A high-trust Certificate is a provider-hosted SharePoint App that uses the digital certificates to establish trust between the remote web application and SharePoint. This is the link to create a certificate in IIS. Here I would like to give a PowerShell code to create the self-signed certificate (.pfx file) Note In the folder that you saved the .cer and .pfx file in SharePoint server, be sure that the App pool identity for the following IIS Apps have Read rights to the C:\Certs folder. PowerShell Code; Copy the below Code and save it as a Makecertificate.ps1 Then run the below cmd in PowerShell, C:\powershells\Makecertificate.ps1-Domain apps.gowtham.com – OutputDir C:\Certificates -$Password Password1 PowershellCode:
Next Article: How to create IIS website and register the certificate to IIS website.
Basic Operations On SharePoint Using PnP PowerShell Scripts