Submit-CertificateRequest : Cannot process argument transformation on parameter 'EnrollmentPolicyServer'. Cannot convert the "https://xxx/Test%20Issuing%20CA1_CES_Kerberos/service.svc/CES" value of
type "System.String" to type "PKI.Enrollment.Policy.PolicyServerClient".
At line:1 char:150
+ ... olicyServer "https://xxx/Test%2 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Submit-CertificateRequest], ParameterBindingArgumentTransformationException
+ FullyQualifiedErrorId : ParameterArgumentTransformationError,Submit-CertificateRequest
When I use the example from the command Submit-CertificateRequest as displayed on page https://www.sysadmins.lv/projects/pspki/Submit-CertificateRequest.aspx I receive this error:
The commands I tried are:
Submit-CertificateRequest -CA $CA -Attribute "CertificateTemplate:TestWebServer(Offlinerequest)" -RawRequest $CSR -CEP "https://xxx/Test%20Issuing%20CA1_CES_Kerberos/service.svc/CES"
Submit-CertificateRequest -CA $CA -Attribute "CertificateTemplate:TestWebServer(Offlinerequest)" -RawRequest $CSR -CEP "https://xxx/ADPolicyProvider_CEP_Kerberos/service.svc/CEP" -Credential Get-Credential
Why doesn't it work?