web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Certificate registration error on Dynamics v9 on-premise

(0) ShareShare
ReportReport
Posted on by 3,079

I'm trying to set up a test environment with D365 on-prem, connecting to Sharepoint.  Both servers are individually running fine, using a wildcard SSL certificate.  Now that I'm trying to do the connection, I'm running this script on the CRM server, as per the instructions (of course with my real info in it):

.\CertificateReconfiguration.ps1 -certificateFile c:\Personalcertfile.pfx -password personal_certfile_password -updateCrm -certificateType S2STokenIssuer -serviceAccount Domain\UserName -storeFindType FindBySubjectDistinguishedName

And it fails, with the error "Set-CrmCertificate : The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel."

If I run it without the -updateCrm flag it works fine, but of course that's not sufficient to get me onto the next step of the SP integration.  So it's something to do with the writing of the certificate to the ConfigDb, but I don't know what.  The account I'm running this as and the service account I'm putting in there both have access to the database...not sure what else to check.   Any thoughts as to what else might be blocking this, or how I can get more info as to the issue? 

*This post is locked for comments

I have the same question (0)
  • awalters Profile Picture
    3,079 on at

    Also, I've gone into MMC and made sure that the account I'm running this as, as well as the service account, both have access to the certificate.

  • Verified answer
    awalters Profile Picture
    3,079 on at

    Found it!  In Deployment Manager, the web addresses were set up for SSL with the proper port, but the addresses just had the server name rather than the FQDN (so they didn't match the certificate).  Updated them to FQDN and re-ran the command, and all is well.

  • Fedor Patutinskiy Profile Picture
    10 on at

    Thank you so much! This solved my problem

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans