Help to create a new Exchange 2016 certificate for 397 days

Steve Shelts 21 Reputation points
2022-07-28T19:04:07.467+00:00

When I renew the Exchange certificate using the following Powershell command

Get-ExchangeCertificate -Thumbprint "DFL..." | New-ExchangeCertificate -PrivateKeyExportable $true

The expiry date is in 5 years. How can I set the expiry date to 397 days?

Exchange | Exchange Server | Management
{count} votes

Accepted answer
  1. Aholic Liang-MSFT 13,886 Reputation points Microsoft External Staff
    2022-08-04T08:57:04.47+00:00

    Hi,
    I have researched a lot documentation, there is no way to choose the validity period for renew the certificate.
    Thank you for your understanding!


4 additional answers

Sort by: Most helpful
  1. Dillon Silzer 57,831 Reputation points Volunteer Moderator
    2022-07-28T19:44:45.367+00:00

    Hi @Steve Shelts

    You cannot change an Exchange expiry date from 5 years.

    Every certificate has a built-in expiration date. In Exchange Server, the default self-signed certificate that's installed on the Exchange server expires 5 years after Exchange was installed on the server. You can use the Exchange admin center (EAC) or the Exchange Management Shell to renew Exchange certificates. This includes Exchange self-signed certificates, and certificates that were issued by a certification authority (CA).

    Renew an Exchange Server certificate

    https://learn.microsoft.com/en-us/exchange/architecture/client-access/renew-certificates?view=exchserver-2019

    -------------------------

    If this is helpful please mark as correct answer.

    0 comments No comments

  2. Steve Shelts 21 Reputation points
    2022-07-28T20:09:13.57+00:00

    Yes the default self-signed certificate expired so I renewed it using PowerShell. Is there a switch I can add to the PowerShell command so I can create a self-signed certificate with a shorter expiration date because 5 years is too long? I want to create a self-signed certificate that expires in 397 days.


  3. Aholic Liang-MSFT 13,886 Reputation points Microsoft External Staff
    2022-07-29T08:09:47.38+00:00

    Hi @Steve Shelts ,
    In general ,you can't change the expiration date of an existing certificate. But you can change the default validity period for the Certificate Authority.
    Change expiration date of certificates - Windows Server | Microsoft Learn
    Thank you for your understanding!


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  4. Steve Shelts 21 Reputation points
    2022-08-03T07:09:31.017+00:00

    Hi @Aholic Liang-MSFT ,

    I looked at that link and the validity period for the Certificate Authority on the Exchange server is set to 2 years. Yet when I create a new certificate, it has a period of 5 years.

    Maybe I need to check the validity period on the Domain Controller as well? I'll check and let you know.


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.