Reputation: 188
I am trying to add a new trust token issuer to Sharepoint 2010,
however New-SPTrustedIdentityTokenIssuer
throws:
Exception has been thrown by the target of invocation. CategoryInfo: InvalidData....
Any ideas why I may be getting this error? The command is as follows:
$ap = New-SPTrustedIdentityTokenIssuer -Name "MySTS" -Description "My Sts desc" -realm $realm -ImportTrustCertificate $stsCert -ClaimsMappings $mapUser,$mapRole -SignInUrl $signinUrl -IdentifierClaim $mapUser.InputClaimType
Upvotes: 2
Views: 4205
Reputation: 21
Try to remove -ImportTrustCertificate $stsCert
because I think this certificate is already imported.
Upvotes: 2