Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Error:Add-ADFSRelyingPartyTrust

(0) ShareShare
ReportReport
Posted on by 1,300

Hi Everyone,

i am getting this error "Add-ADFSRelyingPartyTrust : The underlying connection was closed: Could not establish trust relationship for the 

SSL/TLS secure channel" while run this command :

Add-ADFSRelyingPartyTrust -Name urn:federation:NavClaimRule -MetadataUrl "https://localhost:8443/DynamicsNAV71/WebClient/. s.accesscontrol.windows.net/FederationMetadata/2007- 06/FederationMetadata.xml" -IssuanceAuthorizationRulesFile C:\ClaimAuthRules.txt -IssuanceTransformRulesFile C:\ClaimTransformRules.txt
  
in poweshell pls suggest me solution.  

*This post is locked for comments

  • Suggested answer
    Daniele Rebussi Profile Picture
    Daniele Rebussi 2,480 on at
    RE: Error:Add-ADFSRelyingPartyTrust

    I think this is a problem related to the certificate used.

    The first step should be to make the certificate working with Internet Explorer, try to follow this steps:

    1) Browse to the site whose certificate you want to trust.

    2) When told “There is a problem with this website's security certificate.”, choose “Continue to this website (not recommended).”

    3) Select Tools➞Internet Options.

    4) Select Security➞Trusted sites➞Sites.

    5) Confirm the URL matches, and click “Add” then “Close”.

    6) Close the “Internet Options” dialog box with either “OK” or “Cancel”.

    7) Refresh the current page.

    8) When told “There is a problem with this website's security certificate.”, choose “Continue to this website (not recommended).”

    9) Click on “Certificate Error” at the right of the address bar and select “View certificates”.

    10) Click on “Install Certificate...”, then in the wizard, click “Next”.

    11) On the next page select “Place all certificates in the following store”.

    12) Click “Browse”, select “Trusted Root Certification Authorities”, and click “OK”.

    13) Back in the wizard, click “Next”, then “Finish”.

    14) If you get a “Security Warning” message box, click “Yes”.

    15) Dismiss the message box with “OK”.

    16) Select Tools➞Internet Options.

    17) Select Security➞Trusted sites➞Sites.

    18) Select the URL you just added, click “Remove”, then “Close”.

    19) Now shut down all running instances of IE, and start up IE again.

    20) The site’s certificate should now be trusted.

    If you can complete them, retry the Add-ADFSRelyingPartyTrust command.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,432 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans