Team blog of MCS @ Middle East and Africa

This blog is created by Microsoft MEA HQ near shoring team, and it aims to share knowledge with the IT community.With its infrastructure and development sides,It brings to you the proven best practices and real world experiences from Subject Matter Experts
Follow Us On Twitter! Subscribe To Our Blog! Contact Us

Office 365 & ADFS - Error when adding the second Federation server: No Certificate Matching the Federation Service

Office 365 & ADFS - Error when adding the second Federation server: No Certificate Matching the Federation Service

  • Comments 2
  • Likes

Symptoms:

The symptoms as follow:

- First ADFS server is implemented.

- New Federation service is configured properly.

- ADFS is installed on the second ADFS server.

- When adding the server to the federation farm we receive the following error:

“No certificate matching the Federation Service name were found in the Local Computer certificate store. Install the certificate that represents your Federation Service name in the Local Computer certificate store, and then try again”

The following snapshot represents the error:

clip_image001

Explanations:

Searching ADFS shows some vague words that gave the impression that ADFS requires that the name used for ADFS must be the subject name of the certificate, check the following article as example:

- Review ADFS Requirements: http://technet.microsoft.com/en-us/library/dn151311.aspx

“The Subject name of this SSL certificate is used to determine the Federation Service name for each instance of AD FS that you deploy. For this reason, you may want to consider choosing a Subject name on any new certification authority (CA)-issued certificates that best represents the name of your company or organization to the cloud service and this name must be Internet-routable. For example, in the diagram provided earlier in this article (see “Phase 2”), the subject name of the certificate would be fs.fabrikam.com”

Also when we have configured the first ADFS server and creating the new Federation Farm, you will notice that the wizard shows the certificate subject name as the default until from the drop down you select another name as the following snapshot:

clip_image002

But when adding the second server to the farm it’s not even gave you that option.

So the first thing to think of is that only with the wizard and can be fixed with the command line or not?

Solution:

Doing a quick search I found this article which is talking about how to create new federation farm using the command fsconfig.exe:

http://technet.microsoft.com/en-us/library/adfs2-help-how-to-configure-a-new-federation-server(v=WS.10).aspx

The general syntax of the command:

fsconfig.exe {StandAlone|CreateFarm|CreateSQLFarm|JoinFarm|JoinSQLFarm}

And as per the article the fsconfig command in this folder:

C:\program files\Active Directory Federation Services 2.0

So all we need to do is to follow the same syntax to join an existing farm and we can use the help to get the exact parameters:

Fsconfig joinfarm /help

The command line should be:

fsconfig.exe joinfarm /primarycomputername <<this is the first ADFS server>> /serviceaccount <<service account used with the first server>> /serviceaccountpassword <<password>> /certthumbprint <<the certificate thumbprint>>

The following snapshot shows the result of executing the command:

clip_image003

As the snapshot the configuration is completed successfully and using the command line solved the problem.

Comments
  • Question: Does this require using an SQL Farm or can this be done with the Default Windows Internal Database Farm?  Thanks!

  • @Mark: in the above scenario I used WID, the firs server will be primary (read/write mode) second one will be read only, in case of failure of the first one you can promote the second server to be primary as the following article: technet.microsoft.com/.../jj151809.aspx

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment