Hi!
I have two domains — with administrative accounts(ADM) and domain with resources(RES).
Domain RES trusts domain ADM, so users from ADM can login to domain RES.
ADM does not trust RES.
Our PKI (issuing and two pairs of ces+cep) are in RES domain.
I want to give rights to get certificates for users from ADM domain.
Access to read CA, templates, enroll specific templates is already granted for my account(user@ADM)
At the moment I(as user@ADM) can see the list of available certificates, but get an error when I try to get one.
For example:
#$admcred=Get-Credential
Get-Certificate -SubjectName "CN=qqq" -template "User-manual" -Url "https://srv-caext-01.xxx.yyy/KeyBasedRenewal_ADPolicyProvider_CEP_UsernamePassword/service.svc/CEP" -Credential $admcred -CertStoreLocation "Cert:\CurrentUser\My"
Errors from: certsrv.log
457.1846.0:<2019/10/16, 16:31:38>: 0x80070005 (WIN32: 5 ERROR_ACCESS_DENIED)
504.108.0:<2019/10/16, 16:31:38>: 0x80070005 (WIN32: 5 ERROR_ACCESS_DENIED)
515.349.0:<2019/10/16, 16:31:38>: 0x80070005 (WIN32: 5 ERROR_ACCESS_DENIED)
515.236.0:<2019/10/16, 16:31:38>: 0x80070005 (WIN32: 5 ERROR_ACCESS_DENIED)
Errors from powershell output:
Get-Certificate : CertEnroll::CX509Enrollment::Enroll: The certificate request could not be submitted to the certification authority. A certificate
could not be issued by the certification authority.: A message containing a fault was received from the remote endpoint. 0x803d0013 (-2143485933
WS_E_ENDPOINT_FAULT_RECEIVED)
At line:2 char:1+ Get-Certificate -SubjectName "CN=qqq" -template "User-manual" -Url " ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : NotSpecified: (:) [Get-Certificate], Exception+ FullyQualifiedErrorId : System.Exception,Microsoft.CertificateServices.Commands.GetCertificateCommand
I don't see any error in other logs from CA and DC. I see messages about successful authentication/impersonalization.
How to find more information about the error in certsrv.log?