title: CRM 2016 On-premise and SharePoint 2016 On-premise - enable server based SharePoint integration
body: <p>We have CRM 2016 On-premise (IFD Configured) and SharePoint 2016 On-premise (with SSL) . We are trying to enable server based SharePoint integration for this.</p>
  
  <p>The place where we started was from the Microsoft article <a href="https://technet.microsoft.com/en-us/library/dn949332.aspx#BKMK_Setup" rel="nofollow noreferrer">https://technet.microsoft.com/en-us/library/dn949332.aspx#BKMK_Setup</a></p>
  
  <p>Now we are struggling with the running the powershell command on the CRM server </p>
  
  <pre><code>.\CertificateReconfiguration.ps1 -certificateFile c:\Personalcertfile.pfx -password personal_certfile_password -updateCrm -certificateType S2STokenIssuer -serviceAccount contoso\CRMAsyncService -storeFindType FindBySubjectDistinguishedName
  </code></pre>
  
  <p>It gives the error </p>
  
  <p><a href="https://i.stack.imgur.com/2orpR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2orpR.png" alt="enter image description here"></a></p>
  
  <p>The service accounts are given permission on the Certificate.
  Could be a basic question- but from the powershell command that has to be run, would that need a new pfx file or does it have to be the certificate that was used while configuring IFD for CRM?
  Ignoring this error tried enabling the SP integration but it popped out an error saying site Invalid (and no more details). Event viewer pointed to CRM Plugin error on 'ValidateSharePointSite'</p>