简体   繁体   English

使用 powershell 在 IIS 10 中重新绑定证书

[英]Certificate Rebind in IIS 10 using powershell

I'm trying to enable the "certificate rebind option in IIS 10" https://docs.microsoft.com/en-us/iis/get-started/whats-new-in-iis-85/certificate-rebind-in-iis85 using PowerShell.我正在尝试启用“IIS 10 中的证书重新绑定选项” https://docs.microsoft.com/en-us/iis/get-started/whats-new-in-iis-85/certificate-rebind-in -iis85使用 PowerShell。

I found nothing but this, https://delpierosysadmin.wordpress.com/2015/02/23/iis-8-5-enable-automatic-rebind-of-renewed-certificate-via-command-line/我只找到了这个, https://delpierosysadmin.wordpress.com/2015/02/23/iis-8-5-enable-automatic-rebind-of-renewed-certificate-via-command-line/

Is there any other way to do this?有没有其他方法可以做到这一点?

Just creating the scheduled task as described in the referenced blog post should be sufficient.只需按照引用的博客文章中的描述创建计划任务就足够了。

There are no configuration changes in IIS when the you enable the feature in the IIS GUI.当您在 IIS GUI 中启用该功能时,IIS 中的配置没有变化。

IIS Manager just checks for the existence of a task IIS 管理器只检查任务是否存在

\Microsoft\Windows\CertificateServicesClient\IIS-AutoCertRebind

if such a task exists, regardless of what it does, IIS Manager changes the wording on the link.如果存在这样的任务,无论它做什么,IIS 管理器都会更改链接上的措辞。

In my case the solution to this problem was simple but dumb.就我而言,这个问题的解决方案很简单但很愚蠢。 I started the IIS-Console using the Server-Manager -> Tools, and got the same error every time I tried to enable the automatic rebind.我使用服务器管理器 -> 工具启动了 IIS 控制台,每次尝试启用自动重新绑定时都会遇到相同的错误。

After a while of testing I opened a cmd with admin-privileges, ran an mmc and added the IIS-Console there ... and tried the same thing.经过一段时间的测试,我用管理员权限打开了一个 cmd,运行了一个 mmc 并在那里添加了 IIS-Console ......并尝试了同样的事情。 Well long story short, it worked facepalm长话短说,它在facepalm上奏效

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM