| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,15 +1,16 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | const common = require('../common'); | |
| 3 | + const fixtures = require('../common/fixtures'); | ||
| 4 | + | ||
| 3 | 5 | if (!common.hasCrypto) | |
| 4 | 6 | common.skip('missing crypto'); | |
| 5 | 7 | ||
| 6 | 8 | const assert = require('assert'); | |
| 7 | 9 | const https = require('https'); | |
| 8 | - const fs = require('fs'); | ||
| 9 | 10 | ||
| 10 | 11 | const options = { | |
| 11 | - key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`), | ||
| 12 | - cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`) | ||
| 12 | + key: fixtures.readKey('agent1-key.pem'), | ||
| 13 | + cert: fixtures.readKey('agent1-cert.pem') | ||
| 13 | 14 | }; | |
| 14 | 15 | const httpsServer = https.createServer(options, reqHandler); | |
| 15 | 16 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments