SharePoint 2016 High Trust App Security Token Service

PowerShell Snippet: –

 

Add-PSSnapin Microsoft.SharePoint.PowerShell
cls

$publicCertPath = “C:\WorkArea\Certificates\wildcard.spd.local.cer”
$certificate = Get-PfxCertificate $publicCertPath

New-SPTrustedRootAuthority -Name “wildcard.spd.local.cer” -Certificate $certificate

$web = Get-SPWeb “http://sp/sites/DevCenter”
$realm = Get-SPAuthenticationRealm -ServiceContext $web.Site
$specificIssuerId = “A488244B-103E-AECA-2F586D306CD3A08A”

$fullIssuerIdentifier = $specificIssuerId + “@” + $realm

New-SPTrustedSecurityTokenIssuer -Name “ContosoAppsHighTrust” -Certificate $certificate –RegisteredIssuerName $fullIssuerIdentifier –IsTrustBroker

write-host $fullIssuerIdentifier

 

iisreset

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 )

w

Connecting to %s