| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,15 +7,15 @@ if (!common.opensslCli) | |||
| 7 | 7 | common.skip('node compiled without OpenSSL CLI.'); | |
| 8 | 8 | ||
| 9 | 9 | const assert = require('assert'); | |
| 10 | - const join = require('path').join; | ||
| 11 | - const fs = require('fs'); | ||
| 12 | - const spawn = require('child_process').spawn; | ||
| 10 | + const fixtures = require('../common/fixtures'); | ||
| 13 | 11 | const https = require('https'); | |
| 12 | + const spawn = require('child_process').spawn; | ||
| 14 | 13 | ||
| 15 | 14 | const options = { | |
| 16 | - key: fs.readFileSync(`${common.fixturesDir}/agent.key`), | ||
| 17 | - cert: fs.readFileSync(`${common.fixturesDir}/agent.crt`), | ||
| 18 | - requestCert: true | ||
| 15 | + key: fixtures.readSync('agent.key'), | ||
| 16 | + cert: fixtures.readSync('agent.crt'), | ||
| 17 | + requestCert: true, | ||
| 18 | + rejectUnauthorized: false | ||
| 19 | 19 | }; | |
| 20 | 20 | ||
| 21 | 21 | const modulus = 'A6F44A9C25791431214F5C87AF9E040177A8BB89AC803F7E09BBC3A5519F' + | |
@@ -48,8 +48,8 @@ server.listen(0, function() { | |||
| 48 | 48 | const args = ['s_client', | |
| 49 | 49 | '-quiet', | |
| 50 | 50 | '-connect', `127.0.0.1:${this.address().port}`, | |
| 51 | - '-cert', join(common.fixturesDir, 'foafssl.crt'), | ||
| 52 | - '-key', join(common.fixturesDir, 'foafssl.key')]; | ||
| 51 | + '-cert', fixtures.path('foafssl.crt'), | ||
| 52 | + '-key', fixtures.path('foafssl.key')]; | ||
| 53 | 53 | ||
| 54 | 54 | // for the performance and stability issue in s_client on Windows | |
| 55 | 55 | if (common.isWindows) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments