ADFS server core 2016 Error: 'The certificate specified does not meet all the requirements of an SSL certificate.

Qasim, Talha 0 Reputation points
2023-03-01T08:56:57.7533333+00:00

Hi,

We are having an issue with our ADFS certificate renewal, our cert has expired, and use local ADCS to generate the certs.

The new cert has been generated and is in the ADFS server, but whenever I try "Set-AdfsSslCertificate -Thumbprint 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' to set the new cert, I get the below error, I'm now kind of clueless as to what am I missing. I'm logged in via the local administrator account, and everything is on-prem.

Thanks in advance for all the 🙂

Set-AdfsSslCertificate : PS0317: One or more of AD FS servers returned errors during execution of command
'Set-AdfsSslCertificate'. Error information: PS0316: AD FS Server: 'localhost', Error: 'The certificate specified does
not meet all the requirements of an SSL certificate.'.
At line:1 char:1
+ Set-AdfsSslCertificate -Thumbprint 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Set-AdfsSslCertificate], RemoteException
    + FullyQualifiedErrorId : RuntimeException,Microsoft.IdentityServer.Management.Commands.SetSslCertificateCommand
Microsoft Security | Active Directory Federation Services
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JimmySalian-2011 42,496 Reputation points
    2023-03-01T09:30:53.0733333+00:00

    Hi,

    Did you runt the PS command in elevated ADmin mode? Try that option and also check the event logs and provide details if additional details are logged in the event viewer. There is another thread with similar issue check the solution might help - https://community.spiceworks.com/topic/2343349-unable-to-set-adfs-ssl-certificate-thumbprint

    Hope this helps.

    JS

    ==

    Please accept as answer and do a Thumbs-up to upvote this response if you are satisfied with the community help. Your upvote will be beneficial for the community users facing similar issues.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.