1'use strict'; 2const common = require('../common'); 3 4if (!common.hasCrypto) 5 common.skip('missing crypto'); 6 7const assert = require('assert'); 8const tls = require('tls'); 9 10{ 11 const server = tls.createServer(); 12 assert.strictEqual(server.clientCertEngine, undefined); 13 common.expectWarning('DeprecationWarning', 14 'Server.prototype.setOptions() is deprecated', 15 'DEP0122'); 16 server.setOptions({ clientCertEngine: 'Cannonmouth' }); 17 assert.strictEqual(server.clientCertEngine, 'Cannonmouth'); 18} 19