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