Skip to content

Commit c28b724

Browse files
committed
Adjust scoring
1 parent 3022ec9 commit c28b724

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
@@ -621,7 +621,7 @@ async function reviewSelfSignedCert() {
621621
const newPublicCert = await generateCertificates(pki.privateKeyFromPem(caAndKey.private_key), publicKey, hdbCa);
622622
await setCertTable({
623623
name: certName,
624-
uses: ['https', 'operations', 'wss'],
624+
uses: ['https', 'operations', 'wss', 'replication'],
625625
certificate: newPublicCert,
626626
is_authority: false,
627627
private_key_name: caAndKey.ca.private_key_name,
@@ -755,7 +755,7 @@ function createTLSSelector(type, mtlsOptions) {
755755
}
756756
let quality = cert.is_self_signed ? 1 : 3;
757757
// prefer operations certificates for operations API
758-
if (cert.uses?.includes(type)) quality += 1;
758+
if (cert.uses?.includes(type)) quality += 3;
759759

760760
const private_key = getPrivateKeyByName(cert.private_key_name);
761761

0 commit comments

Comments
 (0)