You can get around this by installing Fiddler, going into ‘Tools’ > ‘Telerik Fiddler Options’ > HTTPS tab > checking ‘Decrypt HTTPS traffic’ and then checking ‘Ignore server certificate errors (unsafe) option.
You can then run the command below successfully (Make sure your CRM website in IIS has the port 80 binding, if not, re-add it!):
$i = New-SPTrustedSecurityTokenIssuer -Name “crmdev” -IsTrustBroker:$false =MetadataEndpoint “http://xxx/XRMServices/2015/MetadataEndpoint.svc/json/?orgName=xxx
Once this command completed successfully we were able to breeze through the rest of the setup following instructions from TechNet.
Until coming to the point of Enabling server-based SharePoint Integration Wizard inside of CRM.
After running the wizard entering in our SharePoint site (SAML was successful) entering the SharePoint RealmID and hitting Validate kept giving me the following error: