mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
Revert "test: move all test keys/certs under test/fixtures/keys/"
PR-URL: https://github.com/nodejs/node/pull/28083 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Refael Ackermann (רפאל פלחי) <refack@gmail.com>
This commit is contained in:
1 parent
9dd840dff5
commit
62de36e8d3
126 files changed
+738
-746
No files matched your search
@@ -30,8 +30,8 @@ const assert = require('assert');
|
||||
const https = require('https');
|
||||
|
||||
const options = {
|
||||
key: fixtures.readKey('rsa_private.pem'),
|
||||
cert: fixtures.readKey('rsa_cert.crt')
|
||||
key: fixtures.readSync('test_key.pem'),
|
||||
cert: fixtures.readSync('test_cert.pem')
|
||||
};
|
||||
|
||||
const server = https.createServer(options, common.mustCall(function(req, res) {
|
||||
@@ -72,7 +72,7 @@ function rejectUnauthorized() {
|
||||
function authorized() {
|
||||
const options = {
|
||||
port: server.address().port,
|
||||
ca: [fixtures.readKey('rsa_cert.crt')]
|
||||
ca: [fixtures.readSync('test_cert.pem')]
|
||||
};
|
||||
options.agent = new https.Agent(options);
|
||||
const req = https.request(options, function(res) {
|
||||
|
||||
Reference in new issue
Block a user