PowerShell Script for certificate

Amitav Kumar 1 Reputation point
2022-08-09T05:23:30.927+00:00

Is there any script by which a windows certificate can be imported multiple windows servers and also bind in IIS for the respective application?

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

2 answers

Sort by: Most helpful
  1. Andreas Baumgarten 123.4K Reputation points MVP Volunteer Moderator
    2022-08-09T06:13:43.19+00:00

    Hi @Amitav Kumar ,

    please take a look here: https://www.jorgebernhardt.com/iis-ssl-powershell/

    If the IIS is already installed skip the first part and start with Configuring IIS for SSL .

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten

    0 comments No comments

  2. Limitless Technology 39,916 Reputation points
    2022-08-09T14:18:42.257+00:00

    Hi there,

    You can access the certificate store using MMC or using CertMgr.msc command. There are certificates stored for CurrentUser, ServiceAccount, and Local Computer.

    The Get-Certificate cmdlet can be used to submit a certificate request and install the resulting certificate, install a certificate from a pending certificate request, and enroll for ldap. If the request is issued, then the returned certificate is installed in the store determined by the CertStoreLocation parameter and return the certificate in the EnrollmentResult structure with status Issued.

    https://learn.microsoft.com/en-us/powershell/module/pki/get-certificate?view=windowsserver2022-ps

    I hope this information helps.

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

    --If the reply is helpful, please Upvote and Accept it as an answer--

    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.