| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -33,8 +33,8 @@ const net = require('net'); | |||
| 33 | 33 | const spawn = require('child_process').spawn; | |
| 34 | 34 | const fixtures = require('../common/fixtures'); | |
| 35 | 35 | ||
| 36 | - const key = fixtures.readSync('agent.key').toString(); | ||
| 37 | - const cert = fixtures.readSync('agent.crt').toString(); | ||
| 36 | + const key = fixtures.readKey('rsa_private.pem'); | ||
| 37 | + const cert = fixtures.readKey('rsa_cert.crt'); | ||
| 38 | 38 | ||
| 39 | 39 | function log(a) { | |
| 40 | 40 | console.error(`***server*** ${a}`); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -41,8 +41,8 @@ doTest({ tickets: false }, function() { | |||
| 41 | 41 | }); | |
| 42 | 42 | ||
| 43 | 43 | function doTest(testOptions, callback) { | |
| 44 | - const key = fixtures.readSync('agent.key'); | ||
| 45 | - const cert = fixtures.readSync('agent.crt'); | ||
| 44 | + const key = fixtures.readKey('rsa_private.pem'); | ||
| 45 | + const cert = fixtures.readKey('rsa_cert.crt'); | ||
| 46 | 46 | const options = { | |
| 47 | 47 | key, | |
| 48 | 48 | cert, | |
@@ -101,8 +101,8 @@ function doTest(testOptions, callback) { | |||
| 101 | 101 | '-tls1', | |
| 102 | 102 | '-connect', `localhost:${this.address().port}`, | |
| 103 | 103 | '-servername', 'ohgod', | |
| 104 | - '-key', fixtures.path('agent.key'), | ||
| 105 | - '-cert', fixtures.path('agent.crt'), | ||
| 104 | + '-key', fixtures.path('keys/rsa_private.pem'), | ||
| 105 | + '-cert', fixtures.path('keys/rsa_cert.crt'), | ||
| 106 | 106 | '-reconnect' | |
| 107 | 107 | ].concat(testOptions.tickets ? [] : '-no_ticket'); | |
| 108 | 108 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -94,8 +94,8 @@ if (cluster.isMaster) { | |||
| 94 | 94 | return; | |
| 95 | 95 | } | |
| 96 | 96 | ||
| 97 | - const key = fixtures.readSync('agent.key'); | ||
| 98 | - const cert = fixtures.readSync('agent.crt'); | ||
| 97 | + const key = fixtures.readKey('rsa_private.pem'); | ||
| 98 | + const cert = fixtures.readKey('rsa_cert.crt'); | ||
| 99 | 99 | ||
| 100 | 100 | const options = { key, cert }; | |
| 101 | 101 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -42,7 +42,7 @@ test1(); | |||
| 42 | 42 | ||
| 43 | 43 | // simple/test-tls-securepair-client | |
| 44 | 44 | function test1() { | |
| 45 | - test('agent.key', 'agent.crt', null, test2); | ||
| 45 | + test('keys/rsa_private.pem', 'keys/rsa_cert.crt', null, test2); | ||
| 46 | 46 | } | |
| 47 | 47 | ||
| 48 | 48 | // simple/test-tls-ext-key-usage | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -51,8 +51,8 @@ function doTest() { | |||
| 51 | 51 | ||
| 52 | 52 | const SESSION_TIMEOUT = 1; | |
| 53 | 53 | ||
| 54 | - const key = fixtures.readSync('agent.key'); | ||
| 55 | - const cert = fixtures.readSync('agent.crt'); | ||
| 54 | + const key = fixtures.readKey('rsa_private.pem'); | ||
| 55 | + const cert = fixtures.readKey('rsa_cert.crt'); | ||
| 56 | 56 | const options = { | |
| 57 | 57 | key: key, | |
| 58 | 58 | cert: cert, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments