Skip to content

Commit d0b4593

Browse files
committed
Fix replication certificate configuration
Update SNI selector and certificate uses from 'operations-api' to 'replication' to properly assign certificate usage.
1 parent 382d5e3 commit d0b4593

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

security/keys.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function getCertTable() {
125125
}
126126

127127
async function getReplicationCert() {
128-
const SNICallback = createTLSSelector('operations-api');
128+
const SNICallback = createTLSSelector('replication');
129129
const secureTarget = {
130130
secureContexts: null,
131131
setSecureContext: (_ctx) => {},
@@ -351,7 +351,7 @@ function certExtensions() {
351351
async function createCertificateTable(cert, caCert) {
352352
await setCertTable({
353353
name: getThisNodeName(),
354-
uses: [],
354+
uses: ['replication'],
355355
certificate: cert,
356356
private_key_name: 'privateKey.pem',
357357
is_authority: false,

0 commit comments

Comments
 (0)