Jean Paul's Blog

There are 2 types of People in the World, One who Likes SharePoint and..

    Advertisements
  • Microsoft MVP

  • MindCracker MVP

  • CodeProject MVP

  • eBook on SharePoint 2010

  • eBook on Design Patterns

  • eBook on Windows Azure

  • NLayers Framework @ CodePlex

  • MSDN Forums

  • .Net vs. Java

    Due to Public Demand
  • Advertisements

Sign Certificate

Posted by Paul on October 31, 2015


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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s