Thanks for posting your question in the Microsoft Q&A forum.
According to your description, you want to know how to renew a self-signed certificate. You can try the following steps to do it through the Exchange Management Shell.
- First, use the command to find the thumbprint value of the certificate.
Get-ExchangeCertificate | where {$_.IsSelfSigned -eq $true} | Format-List FriendlyName,Subject,CertificateDomains,Thumbprint,NotBefore,NotAfter
Just like the following screenshoot:
- According to the thumbprint value of the certificate to be renewed, use the command to renew the certificate.
Get-ExchangeCertificate -Thumbprint 9942FCB458F5359D8348363F62CFEACCD6E44407 | New-ExchangeCertificate -Force -PrivateKeyExportable $true
Just like the following screenshoot:
- After completion, you can use the command to check whether the certificate is renewed successfully.
Get-ExchangeCertificate | where {$_.Status -eq "Valid" -and $_.IsSelfSigned -eq $true} | Format-List FriendlyName,Subject,CertificateDomains,Thumbprint,NotBefore,NotAfter
Just like the following screenshoot:
Refer to: Renew an Exchange Server certificate | Microsoft Learn.
Please feel free to contact me if you have any queries.
Best,
Jeanne