| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 36a0d3f commit f7ab126
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 | ||
| 25 | 26 | if (!common.hasCrypto) | |
| 26 | 27 | common.skip('missing crypto'); | |
@@ -32,11 +33,10 @@ const assert = require('assert'); | |||
| 32 | 33 | const tls = require('tls'); | |
| 33 | 34 | ||
| 34 | 35 | const exec = require('child_process').exec; | |
| 35 | - const fs = require('fs'); | ||
| 36 | 36 | ||
| 37 | 37 | const options = { | |
| 38 | - key: fs.readFileSync(`${common.fixturesDir}/keys/agent2-key.pem`), | ||
| 39 | - cert: fs.readFileSync(`${common.fixturesDir}/keys/agent2-cert.pem`), | ||
| 38 | + key: fixtures.readKey('agent2-key.pem'), | ||
| 39 | + cert: fixtures.readKey('agent2-cert.pem'), | ||
| 40 | 40 | ciphers: '-ALL:ECDHE-RSA-AES128-SHA256', | |
| 41 | 41 | ecdhCurve: 'prime256v1' | |
| 42 | 42 | }; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments