Powershell - Renew certificate

Kristian 1 Reputation point
2021-11-03T11:53:43.27+00:00

Hi,

We have an Windows PKI infrastructure, that is the CA of all our internal certificates.
Ive requested an certificate using Powershell (Get-Certificate), and the certificate have been issued.

The certificate lasts for 30 days, but i cant seem to find any Powershell functions, that renews (not request an new certificate) in the PKI module, that supports this.
https://learn.microsoft.com/en-us/powershell/module/pki/?view=windowsserver2019-ps

It seems that in order to complete this task, i have to use certreq... but i would prefer to keep this in Powershell.

Is it true that the PKI module dont support renewals, and that i have to use certreq?

Windows for business Windows Server User experience PowerShell
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. SChalakov 10,576 Reputation points MVP Volunteer Moderator
    2021-11-03T15:55:49.053+00:00

    Hi Kristian,

    what about this one, did you tried it:

    Renewing a Certificate using PowerShell
    https://stackoverflow.com/questions/26248375/renewing-a-certificate-using-powershell

    Looks like some users marked it as an answer, but pelease test in a test environment first.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Regards,
    Stoyan

    1 person found this answer helpful.
    0 comments No comments

  2. Kristian 1 Reputation point
    2021-11-05T12:13:19.787+00:00

    Hi,

    I already found that article, but was hoping there was an alternative.
    Was hoping for an built-in feature, that i had missed :)

    But i guess i have to use that script then.

    0 comments No comments

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.