| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 054f8f6 commit e9d31bc
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,6 +21,7 @@ | |||
| 21 | 21 | ||
| 22 | 22 | 'use strict'; | |
| 23 | 23 | const common = require('../common'); | |
| 24 | + const fixtures = require('../common/fixtures'); | ||
| 24 | 25 | if (!common.hasCrypto) | |
| 25 | 26 | common.skip('missing crypto'); | |
| 26 | 27 | ||
@@ -29,14 +30,13 @@ process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; | |||
| 29 | 30 | ||
| 30 | 31 | const assert = require('assert'); | |
| 31 | 32 | const https = require('https'); | |
| 32 | - const fs = require('fs'); | ||
| 33 | 33 | const url = require('url'); | |
| 34 | 34 | ||
| 35 | 35 | const URL = url.URL; | |
| 36 | 36 | ||
| 37 | 37 | const options = { | |
| 38 | - key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`), | ||
| 39 | - cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`) | ||
| 38 | + key: fixtures.readKey('agent1-key.pem'), | ||
| 39 | + cert: fixtures.readKey('agent1-cert.pem') | ||
| 40 | 40 | }; | |
| 41 | 41 | ||
| 42 | 42 | const server = https.createServer(options, common.mustCall((req, res) => { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments