在证书存储之间移动证书
适用于:2013
2016
2019
Subscription Edition
SharePoint in Microsoft 365
SharePoint 支持使用 Move-SPCertificate PowerShell cmdlet 在证书存储之间移动证书。
Move-SPCertificate [-Identity] <SPServerCertificatePipeBind> -NewStore {Default | EndEntity | Intermediate | Root} [-Force]
cmdlet 参数为:
参数 | 说明 |
---|---|
Identity | 要移动的证书。 |
NewStore (Default/EndEntity/Intermediate/root) | 要将证书移动到的证书存储区。 如果指定了 Default,SharePoint 将自动为证书选择适当的证书存储。 |
Force | 指定应将证书移动到其他证书存储区,即使证书当前已分配给 SharePoint 对象也是如此。 如果指定此参数,则会清除证书的任何现有分配。 如果未指定此参数,并且证书已分配给 SharePoint 对象,则操作将失败。 |
示例 cmdlet 语法:
Move-SPCertificate -Identity "Contoso SharePoint (2020)" -NewStore EndEntity