Thursday, January 11, 2018

Add Certificate SharePoint Trusted Root using PowerSHell



clear  
Remove-PSSnapin Microsoft.SharePoint.Powershell -ErrorAction SilentlyContinue  
Add-PSSnapin Microsoft.SharePoint.Powershell 

$invocation = (Get-Variable MyInvocation).Value
$currentfolder = Split-Path $invocation.MyCommand.Path
$SolutionPath=$currentfolder + "\STSPublicCert.cer"
New-SPTrustedRootAuthority -Name "STSTrustRenewed" -Certificate $SolutionPath 

No comments:

Post a Comment

Access to XMLHttpRequest at 'from origin has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https. .net core angular

Issue: The angular application was getting error from API that the origin has been blocked by CORS policy. Solution: Make sure that the...