2

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
Anne
  • 26,765
  • 9
  • 65
  • 71
VolkanUzun
  • 188
  • 2
  • 11

1 Answers1

2

Try to remove -ImportTrustCertificate $stsCert because I think this certificate is already imported.

Anne
  • 26,765
  • 9
  • 65
  • 71
redhook
  • 21
  • 2