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