Powershell Certificate Import From RootCA



使用GUI,我只是使用MMC Certificates并导入并指向我的AD集成证书,我如何使用powershell完成此操作

我尽力了,但无济于事

Get-Certificate -Template ldaps -CertStoreLocation cert:localmachineMY -Credential $cred -Url http://rootca/certsrv

错误:

Get-Certificate : CX509EnrollmentPolicyWebService::Initialize: The parameter is incorrect. 0x80070057 (WIN32: 87 ERROR_INVALID_PARAMETER). This may be the result of user credentials being required on the remote machine. See Enable-WSManCredSSP Cmdlet help on
how to enable and use CredSSP for delegation with PowerShell remoting.
At line:1 char:1
+ Get-Certificate -Template Computerv2 -CertStoreLocation cert:localma ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Get-Certificate], Exception
+ FullyQualifiedErrorId : RemotingFailure,Microsoft.CertificateServices.Commands.GetCertificateCommand

certreq -enroll -machine -q "LDAPS_CERTIFICATE">

最新更新