Updates
This commit is contained in:
@@ -8,9 +8,15 @@ type Return = ConnectionConfig["ssl"] | undefined;
|
||||
* # Grab SSL
|
||||
*/
|
||||
export default function grabDbSSL(): Return {
|
||||
const { maxscaleSSLCaCertFile } = grabDirNames();
|
||||
let maxscaleSSLCaCertFileFinal;
|
||||
|
||||
const caFilePath = process.env.DSQL_SSL_CA_CERT || maxscaleSSLCaCertFile;
|
||||
try {
|
||||
const { maxscaleSSLCaCertFile } = grabDirNames();
|
||||
maxscaleSSLCaCertFileFinal = maxscaleSSLCaCertFile;
|
||||
} catch (error) {}
|
||||
|
||||
const caFilePath =
|
||||
process.env.DSQL_SSL_CA_CERT || maxscaleSSLCaCertFileFinal;
|
||||
|
||||
if (!caFilePath?.match(/./)) {
|
||||
return undefined;
|
||||
|
||||
Reference in New Issue
Block a user