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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Certificate Error when trying to Configure SSS on CRM on-premises for Exchange Online

(0) ShareShare
ReportReport
Posted on by 45

I'm using this article learn.microsoft.com/.../mt703269(v=crm.8) for configuring CRM on-premise server based authentication a.k.a SSS (Server Side Sync) to Exchange Online.

Under the section: Set up server-based authentication, Step 2 the first part of the command works fine.

Command:

$CertificateScriptWithCommand = “.\CertificateReconfiguration.ps1 -certificateFile c:\cert.pfx -password mypasswordhere -updateCrm -certificateType S2STokenIssuer -serviceAccount domain\serviceaccount -storeFindType FindBySubjectDistinguishedName”

It's the second part that fails with the error.

Command: Invoke-Expression -command $CertificateScriptWithCommand
Error:

D:\Program Files\Microsoft Dynamics CRM\tools\CertificateReconfiguration.ps1 : Cannot bind argument to parameter 'password' because it is an empty string.

Any ideas on what I need to investigate to resolve this problem would be greatly appreciated...thanks

I tried various things I found online such as:

- granting service account access to certificate private key
- granting service account local security policies for log on as a service and log on as a batch job
- granting service account local administrator on CRM server

I have the same question (1)
  • Suggested answer
    charlesetii Profile Picture
    45 on at

    I figured it out and got passed this one.  Turns out within the script itself I noticed it was using the character of "$" in front of the entries for password, etc. so I replaced the command that I ran in PowerShell to use the $ character and also added quotes for the password such as 'passwordhere' instead of just the password and that was based on other observations, so not sure if that in addition helped solve this but it's solved none the less.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Manoj - ManoVerse Profile Picture

Manoj - ManoVerse 131 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 95

#3
Hamza H Profile Picture

Hamza H 30 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans