Monday, February 18, 2019

Fix Certificate Issues on Development Machines

The below links are useful to fix certification expired issue in D365


  1. https://community.dynamics.com/365/financeandoperations/b/axilitynet/archive/2018/03/27/fix-certificate-issues-on-development-machines
  2. https://community.dynamics.com/365/financeandoperations/b/axtechnicaldynamics/archive/2018/07/13/how-to-fix-certificate-expiry-in-d365

This is the briefly snippet code to execute command in Powershell editor

Follow the below steps to solve the certificate expired issue

Certificate issue of Old key "217695F9CE7033413ECB5F059FC4C4B0F439C102"


1. Use PowerShell (and Run as Administrator) editor and Execute below code

Set-Location -Path "cert:\LocalMachine\My"
$OldCert = (Get-ChildItem -Path 217695F9CE7033413ECB5F059FC4C4B0F439C102)
New-SelfSignedCertificate -CloneCert $OldCert -NotAfter (Get-Date).AddMonths(999)

 2. Output like this

PS C:\windows\system32> Set-Location -Path "cert:\LocalMachine\My"
PS Cert:\LocalMachine\My> $OldCert = (Get-ChildItem -Path 217695F9CE7033413ECB5F059FC4C4B0F439C102)
PS Cert:\LocalMachine\My> New-SelfSignedCertificate -CloneCert $OldCert -NotAfter (Get-Date).AddMonths(999)


   PSParentPath: Microsoft.PowerShell.Security\Certificate::LocalMachine\My

Thumbprint                                Subject
----------                                -------
8C802394D7DFA61343987C7BFEAF48505CEF6D69  CN=DeploymentsOnebox.SessionAuthenticationCertificate.pfx

3. Replace the new key with the old key 

Run Notepad AS ADMINISTRATOR,
Then open each Web.config file
Do a Ctrl+H and find 217695F9CE7033413ECB5F059FC4C4B0F439C102 replace with 8C802394D7DFA61343987C7BFEAF48505CEF6D69

No comments:

Post a Comment

Finacial dimensions using ledger dimension / main account

Select * from objMainAccount  inner join                from objDimensionAttributeValueCombination                  where objDimensionAttrib...