在憑證存放區之間移動憑證
適用於:Subscription Edition SharePoint in Microsoft 365
SharePoint 支援使用 Move-SPCertificate PowerShell Cmdlet 在證書存儲之間移動憑證。
Move-SPCertificate [-Identity] <SPServerCertificatePipeBind> -NewStore {Default | EndEntity | Intermediate | Root} [-Force]
Cmdlet 參數為:
參數 | 描述 |
---|---|
[身分識別] | 要移動的憑證。 |
NewStore (預設 /EndEntity / Intermediate / Root) | 要將憑證移至其中的證書存儲。 如果指定 Default,SharePoint 會自動為憑證選取適當的證書存儲。 |
力 | 指定憑證應該移至不同的證書存儲,即使憑證目前已指派給 SharePoint 物件也一樣。 如果指定此參數,則會清除憑證的任何現有指派。 如果未指定此參數,且憑證已指派給 SharePoint 物件,則作業將會失敗。 |
範例 Cmdlet 語法:
Move-SPCertificate -Identity "Contoso SharePoint (2020)" -NewStore EndEntity