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