1'use strict'; 2const common = require('../common'); 3if (!common.hasCrypto) common.skip('missing crypto'); 4 5// Check that conflicting TLS protocol versions are not allowed 6 7const assert = require('assert'); 8const child_process = require('child_process'); 9 10const args = ['--tls-min-v1.3', '--tls-max-v1.2', '-p', 'process.version']; 11child_process.execFile(process.argv[0], args, (err) => { 12 assert(err); 13 assert.match(err.message, /not both/); 14}); 15