GithubHelp home page GithubHelp logo

rembik / update-iis-certificate Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 1.0 12 KB

PowerShell script for automation certificate deployment on MS IIS webserver

License: MIT License

PowerShell 100.00%

update-iis-certificate's People

Contributors

rembik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

anhhuy88

update-iis-certificate's Issues

Trying to update certificate, but it is unfortunately creating a new one with same name

PS C:\Users\username> .\update-iis-certificate.ps1 .\mydomain.no.pfx -CertSubject "CN=*.mydomain.no" -PFXPassword "secret_passwd"
Transcript started, output file is C:\windows\Temp\update-iis-certificate-2020-09-10T13-00-44.txt
Logging to C:\windows\Temp\update-iis-certificate-2020-09-10T13-00-44.txt:
+++ Start Certificate Update +++

  • Loading the Web Administration Module...

  • Locating the current(old) certificate in store...

  • Unable to locate current(old) certificate in store!

  • Importing certificate into store...

  • Imported certificate:

    PSParentPath: Microsoft.PowerShell.Security\Certificate::LocalMachine\My

Thumbprint Subject


44D35E0954929AB4357404E81FB9EC8E35BBE82F CN=*.mydomain.no

  • Locating the new certificate in store...
  • Unable to locate new certificate in store!
    +++ Completed Certificate Update +++
    Transcript stopped, output file is C:\windows\Temp\update-iis-certificate-2020-09-10T13-00-44.txt

PS C:\Users\username> dir Cert:\LocalMachine\My

PSParentPath: Microsoft.PowerShell.Security\Certificate::LocalMachine\My

Thumbprint Subject


F7DE5FABC06AB240E4A3DABB3D95360842E6ADFA DC=Windows Azure CRP Certificate Generator
01F367EB2A4ABCBCC8364C8975D2919EE332AE8E CN=.mydomain.no
44D35E0954929AB435740ABC1FB9EC8E35BBE82F CN=
.mydomain.no

As you can see, the certificate is imported, but the binding(s) in IIS is not happening.
Any suggestions would be helpful. Thanks!

(feature request) unc network path

thanks for this nice script and can so much time in bigger environment,

little thing which would be great, would be to support unc network path where the certs are placed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.