简体   繁体   English

是否可以通过Powershell从Active Directory CA请求客户端证书?

[英]Can I request a client certificate from Active Directory CA with Powershell?

I'd like to automate the task of requesting client certificates from the CA attached to our Active Directory. 我想自动执行从连接到我们的Active Directory的CA请求客户端证书的任务。 Currently, I use certmgr and click "Request New Certificate" from the menu and do several other selections, including selecting an appropriate policy. 当前,我使用certmgr并从菜单中单击“请求新证书”,并进行其他几个选择,包括选择适当的策略。

Surely, Powershell can help me with this, as I already use it to get rid of old certificates. 当然,Powershell可以为我提供帮助,因为我已经使用它摆脱了旧证书。 Is there a module which can be used for this or does Powershell 3 cover this out-of-the-box? 是否有一个可用于此目的的模块,或者Powershell 3是否可以立即使用?

I think certreq could be what you are looking for. 我认为certreq可能就是您想要的。

Certreq can be used to request certificates from a certification authority (CA), to retrieve a response to a previous request from a CA, to create a new request from an .inf file, to accept and install a response to a request, to construct a cross-certification or qualified subordination request from an existing CA certificate or request, and to sign a cross-certification or qualified subordination request. Certreq可用于从证书颁发机构(CA)请求证书,从CA检索对先前请求的响应,从.inf文件创建新请求,接受并安装对请求的响应,构造来自现有CA证书或请求的交叉认证或合格从属请求,并签署交叉认证或合格从属请求。

Then there is another useful utility when dealing with certificates in windows - certutil 然后在Windows中处理证书时还有另一个有用的实用程序-certutil

暂无
暂无

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

相关问题 Powershell脚本从本地服务器运行,但不在活动目录中的客户端运行 - powershell script running from local server but not from client in active directory 用于将证书安装到Active Directory存储库的Powershell脚本 - Powershell Script to Install Certificate Into Active Directory Store 如何使用Powershell从csv文件更新Active Directory中的更多数据行? - How can I update more data rows in Active Directory from a csv file using Powershell? 如何使用Powershell更改Active Directory中的显示名称? - How can I change the display name in Active Directory with powershell? 如何在PowerShell中将所有Active Directory计算机读入阵列? - How can I read all Active Directory computers into an array in PowerShell? 我可以使用Powershell在Active Directory中更改自己的密码吗? - Can I change my own password in Active Directory using Powershell 如何使用 Powershell 添加用户并添加到 Active Directory 中? - How can I add a user and add in Active Directory with Powershell? 我如何在Active Directory中修改此powershell代码,以便在从CSV文件中清空单元格时能够更改属性? - How can I modify this powershell code in Active Directory, to be able to change attributes when emply cells from csv file? 如何从powershell显示活动目录浏览器 - How to display active directory browser from powershell 如何信任CA衍生的Powershell中的证书 - How to trust a Certificate in Powershell derived of a CA
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM