Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Stuck in PS 2.0, needing to bind cert to site but only getting HTTPS ports

$
0
0

Okay, my scripting and PowerShell abilities are stretched. I have been tasked with managing a script that constructs the app pool, then the site (attaching the app pool as it is constructed), then moving certs out to match the ports constructed. So all is ready to be recognized on the LTM's.

Problem rests in the fact that when all in finished, I still have to go into IIS Manager and associate the bindings such that the site and HTTPS ports are associated with the certs installed with the previously mentioned script. While it is not difficult, it seems rather silly to script everything except that association.

I have tried a number of approaches; such as, utilizing the IIS provider to get to the cert: directory and enumerate the certs and their thumbprints. I had hoped to use the thumbprint to script an association to the site. Close but not quite because I haven't figured out how to pipe the thumbprint to that script association.

So, to clarify; I have the app pools, the site and associated ports (for HTTP and HTTPs). I also have the certs needed on the servers, covering the use of the https usage. I need a way to associate the site/port binding to that Cert. Any ideas?

OJ King


OJ King


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>