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