diff --git a/test/parallel/test-https-strict.js b/test/parallel/test-https-strict.js index ebe805bcf0306a..cd51a7a7d6aff2 100644 --- a/test/parallel/test-https-strict.js +++ b/test/parallel/test-https-strict.js @@ -21,6 +21,7 @@ 'use strict'; const common = require('../common'); +const fixtures = require('../common/fixtures'); if (!common.hasCrypto) common.skip('missing crypto'); @@ -29,15 +30,9 @@ process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; const assert = require('assert'); const https = require('https'); -const fs = require('fs'); -const path = require('path'); - -function file(fname) { - return path.resolve(common.fixturesDir, 'keys', fname); -} function read(fname) { - return fs.readFileSync(file(fname)); + return fixtures.readKey(fname); } // key1 is signed by ca1.