Issue in updating nonce certificate for SPSE version 26H2

Quan PHAM HONG 0 Reputation points
2026-10-21T14:12:21.8133333+00:00

Hello,

I am experiencing an issue when updating the nonce certificate in SP Farm (latest version of 26H2 in Oct, 2026)

$farm = Get-SPFarm

$farm.UpdateNonceCertificate($nonceCert,$true)

No error is returned, but I can't see the results when I check (Get-SPFarm)****.NonceCertificate, it's empty.

Tried to reset IIS and restart the timer job, but nothing occurred.

Could you pls help me check the reason and give me some advice?

Thanks

Microsoft 365 and Office | SharePoint Server | For business
0 comments No comments

1 answer

Sort by: Most helpful
  1. Kristen Tran 2,785 Reputation points Independent Advisor
    2026-10-21T14:42:56.6733333+00:00

    Hi Quan,

    Thank you for reaching out and sharing the details of the nonce certificate update on your SharePoint Server Subscription Edition 26H2 farm.

    This behavior usually occurs because the update method completes silently without applying any change when the certificate is not managed by SharePoint Certificate Management or when the farm has not been fully upgraded.

    Below are some workarounds that suit your situation:

    1/ Confirm the farm upgrade status

    Run the command below and make sure no server shows NeedsUpgrade = True. If any server does, run the SharePoint Products Configuration Wizard on that server first.

       Get-SPServer | ? Role -ne Invalid | select Name, Status, NeedsUpgrade
    

    2/ Import the certificate into SharePoint Certificate Management

    The method requires a certificate object returned by Get-SPCertificate, not one taken from the Windows certificate store.

       $pwd = Read-Host -AsSecureString "PFX password"
       $nonceCert = Import-SPCertificate -Path "C:\certs\nonce.pfx" -Password $pwd -Store EndEntity -Exportable
    

    If the certificate is already imported, use $nonceCert = Get-SPCertificate -Thumbprint "<thumbprint>" and confirm that it returns exactly one certificate.

    3/ Apply the certificate again

       $farm = Get-SPFarm
       $farm.UpdateNonceCertificate($nonceCert, $true)
    

    4/ Verify the result in a new SharePoint Management Shell window

    The farm object is cached in the current session, so the change may not show there. Also note that NonceCertificate may not be a property name on the farm object; checking a name that does not exist returns an empty value without any error. Please use:

       $f = Get-SPFarm
       $f | Get-Member *nonce*
       $f.Properties['SP-NonceCookieCertificateThumbprint']
    

    5/ Check the SharePoint Timer Service

    Make sure it is running on all servers so the certificate can be deployed across the farm.

    If the value is still empty after these steps, please send us the output of steps 1 and 4, together with the ULS logs collected while running the command. You can collect the logs with:

    Merge-SPLogFile -Path C:\temp\nonce.log -StartTime (Get-Date).AddMinutes(-10)
    

    For your information, you can refer to:

    If the nonce certificate value is still empty after these steps, please share the upgrade status of your servers, the verification result from step 4, and the ULS logs collected while running the update. With this information, I can review the issue further and advise you on the next steps.

    I hope this information helps. If you have any questions or concerns, please let me know, and I'll be happy to assist further.

    Kind regards.

    Was this answer helpful?


Your answer

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