Sign Certificate

This is a part of the article-series:

http://www.jeanpaulva.com/index.php/2015/04/25/app-development-pre-requisites/

Sign Certificate

We need to Sign the Certificate for using in the PHA applications.

Locate the Exported Certificate.  We need the path in further steps.

Open PowerShell ISE in Administrator mode.

Run the following script.

Add-PSSnapin “Microsoft.SharePoint.PowerShell”

$issuerID = “88ccebfd-713b-21d3-f1a7-a4133a1b8a8a”
$certPath = “C:/Cert/SharePoint2013Cert.cer”
$cert = Get-PfxCertificate $certPath
$web = Get-SPWeb “http://sharepoint”
$realm = Get-SPAuthenticationRealm -ServiceContext $web.Site
$appid = $issuerID + ‘@’ + $realm
New-SPTrustedSecurityTokenIssuer -Name “PHA App” -Certificate $cert -RegisteredIssuerName $appid –IsTrustBroker

Once executed your Certificate is Signed.

image

Now you can use the Signed Certificate for the PHA application.

Leave a Reply

Your email address will not be published. Required fields are marked *