The documentation for updating x509 certificates in Service Fabric is unclear to me with regards to non-Azure (On-Prem) installations: https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-upgrade-windows-server
I have followed these steps, but they have not worked.
- Updated the cluster setup json template so that the thumbprint of the original certificate is now "ThumbprintSecondary".
Added the new certificate thumbprint under "Thumbprint". e.g.
"security": { "metadata": "The Credential type X509 indicates this is cluster is secured using X509 Certificates. The thumbprint format is - d5 ec 42 3b 79 cb e5 07 fd 83 59 3c 56 b9 d5 31 24 25 42 64.", "ClusterCredentialType": "X509", "ServerCredentialType": "X509", "CertificateInformation": { "ClusterCertificate": { "Thumbprint": "New Thumbprint", "ThumbprintSecondary": "Old Thumbprint", "X509StoreName": "My" }, "ServerCertificate": { "Thumbprint": "New Thumbprint", "ThumbprintSecondary": "Old Thumbprint", "X509StoreName": "My" },
Install the new certificate pfx and update the ACL for "NETWORK SERVICE"
- Run Start-ServiceFabricClusterConfigurationUpgrade -ClusterConfigPath "Path to json Configuration File"