
I'm running the power shell script as admin
My user is local admin. The CRM service account is local admin and SA on the SQL server instance
In the script I've specified the CRM service account and i made sure that it has read access/private keys to the certificate that is installed on the crm server/iis.
CRM is working, IFD is working.
I have run the script in the past without this issue. The certificate has expired and i'm trying to update with a new certificate with a different name if this could be the cause?
Set-CrmCertificate : Source : mscorlib
Method : HandleReturnMessage
Date : 3:51:35 PM
Time : 6/3/2019
Error : Message: Access is denied.
ErrorCode: -2147187707
Stack Trace :
======================================================================================================================
Inner Exception Level 1 :
==DeploymentServiceFault Info=========================================================================================
Error : Access is denied.
Time : 6/3/2019 1:51:35 PM
ErrorCode : -2147187707
Date : 3:51:35 PM
Time : 6/3/2019
Error Items:
======================================================================================================================
At C:\Program Files\Microsoft Dynamics CRM\tools\CertificateReconfiguration.ps1:198 char:3
+ Set-CrmCertificate -CertificateType $certificateType -DataFile $script:tempPub ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (Microsoft.Crm.P...rtificateCmdlet:SetCrmCertificateCmdlet) [Set-CrmCertifi
cate], FaultException`1
+ FullyQualifiedErrorId : CRM Deployment Cmdlet Error,Microsoft.Crm.PowerShell.SetCrmCertificateCmdlet
[06/03/2019 15:51:35] Source : mscorlib
Method : HandleReturnMessage
Date : 3:51:35 PM
Time : 6/3/2019
Error : Message: Access is denied.
ErrorCode: -2147187707
Stack Trace :
======================================================================================================================
Inner Exception Level 1 :
==DeploymentServiceFault Info=========================================================================================
Error : Access is denied.
Time : 6/3/2019 1:51:35 PM
ErrorCode : -2147187707
Date : 3:51:35 PM
Time : 6/3/2019
Error Items:
======================================================================================================================
[06/03/2019 15:51:35] Fail to configure Microsoft Dynamics CRM to use the specifed certificate.
*This post is locked for comments
I have the same question (0)Log in to the server using Deployment Administrator account and execute the script.