Data Source Certificate Pinning
Disaster Recovery uses two independent security mechanisms:
-
Data Source Key — An RSA public key generated by Secret Server. It encrypts and authenticates the replication data itself. You copy this from the source's Outgoing Setup Steps popup.
-
Data Source Pinning Key Hash — A SHA-256 hash of the source server's SSL certificate's public key. It provides optional transport-level MITM protection. You compute this externally using OpenSSL or PowerShell; it is not generated or displayed in the Secret Server UI.
Certificate pinning adds an optional extra validation layer on top of standard TLS. When the replica connects to the source for replication, it validates that the source server's SSL certificate public key matches a hash pre-configured by the replica admin. This guards against man-in-the-middle scenarios where an attacker substitutes a different certificate. It is separate from the Data Source Key, which is an application-level RSA key used to authenticate and encrypt the replication data itself.
Configuring Certificate Pinning on the Replica
Step 1: Compute the Hash Out-of-Band
The hash is a SHA-256 digest of the source server's SSL certificate's SubjectPublicKeyInfo. The source server's Disaster Recovery UI does not generate or display this value — it must be computed by an administrator from the source server's SSL certificate.
Using OpenSSL:
openssl s_client -connect <source-hostname>:443 </dev/null 2>/dev/null \
| openssl x509 -pubkey -noout \
| openssl pkey -pubin -outform DER \
| openssl dgst -sha256 -binary \
| base64
Step 2: Enter the Hash on the Replica
-
Click Administration in the main menu. The Secrets Administration page appears.
-
Search for and click Disaster Recovery. The Disaster Recovery page appears.
-
Click the Incoming Configuration tab.
-
Click Edit. The page becomes editable.
-
In the Data Source Pinning Key Hash field, paste the hash value computed in step 1.
-
Click Save.
Certificate Rotation
When the source server's SSL certificate is renewed or replaced, the pinning hash stored on the replica becomes invalid and must be updated before replication can continue.
-
Recompute the hash from the new certificate using the OpenSSL command above.
-
On the replica, click Administration in the main menu and search for and click Disaster Recovery.
-
Click the Incoming Configuration tab, then click Edit.
-
Update the Data Source Pinning Key Hash field with the new hash value.
-
Click Save and test replication.