| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 85f90a1 commit e8b917c
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,12 +8,12 @@ if (!common.hasCrypto) { | |||
| 8 | 8 | } | |
| 9 | 9 | ||
| 10 | 10 | const https = require('https'); | |
| 11 | - const fs = require('fs'); | ||
| 11 | + const fixtures = require('../common/fixtures'); | ||
| 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'), | ||
| 16 | - ca: fs.readFileSync(common.fixturesDir + '/keys/ca1-cert.pem') | ||
| 14 | + key: fixtures.readKey('agent1-key.pem'), | ||
| 15 | + cert: fixtures.readKey('agent1-cert.pem'), | ||
| 16 | + ca: fixtures.readKey('ca1-cert.pem') | ||
| 17 | 17 | }; | |
| 18 | 18 | ||
| 19 | 19 | const server = https.Server(options, function(req, res) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments