jstests/replsets/libs/tenant_migration_util.js
/**
     * Returns X509 options for ReplSetTest with the given certificate-key file and CA pem file.
     */
Returns X509 options for ReplSetTest with the given certificate-key file and CA pem file.
Returns X509 options for ReplSetTest with the given certificate - key file and CA pem file .
function makeX509Options(certPemFile, caPemFile = "jstests/libs/ca.pem") {
        return {
            tlsMode: "allowTLS",
            tlsCertificateKeyFile: certPemFile,
            tlsCAFile: caPemFile,
            tlsAllowInvalidHostnames: ''
        };
    }
function makeX509Options ( certPemFile , caPemFile = "jstests/libs/ca.pem" ) { return { tlsMode : "allowTLS" , tlsCertificateKeyFile : certPemFile , tlsCAFile : caPemFile , tlsAllowInvalidHostnames : '' } ; }
Returns X509 options for ReplSetTest with the given certificate-key file and CA pem file.
Returns X509 options for ReplSetTest with the given certificate - key file and CA pem file .
// When the global sslMode is preferSSL or requireSSL, the transport layer would do the // SSL handshake regardless of the specified sslMode for the connection. So we use a // allowTLS to verify that the donor and recipient use SSL to authenticate to each other // regardless of the global sslMode.