diff --git a/test/parallel/test-https-pfx.js b/test/parallel/test-https-pfx.js index 4f10b907fc4b1f..d787125409c4b6 100644 --- a/test/parallel/test-https-pfx.js +++ b/test/parallel/test-https-pfx.js @@ -1,13 +1,15 @@ 'use strict'; const common = require('../common'); + if (!common.hasCrypto) common.skip('missing crypto'); +const fixtures = require('../common/fixtures'); + const assert = require('assert'); -const fs = require('fs'); const https = require('https'); -const pfx = fs.readFileSync(`${common.fixturesDir}/test_cert.pfx`); +const pfx = fixtures.readSync('test_cert.pfx'); const options = { host: '127.0.0.1',