mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -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
@@ -266,9 +266,9 @@ if (common.hasCrypto) { // eslint-disable-line node-core/crypto-check
|
||||
const { TCP, constants: TCPConstants } = internalBinding('tcp_wrap');
|
||||
const tcp = new TCP(TCPConstants.SOCKET);
|
||||
|
||||
const ca = fixtures.readKey('rsa_ca.crt');
|
||||
const cert = fixtures.readKey('rsa_cert.crt');
|
||||
const key = fixtures.readKey('rsa_private.pem');
|
||||
const ca = fixtures.readSync('test_ca.pem', 'ascii');
|
||||
const cert = fixtures.readSync('test_cert.pem', 'ascii');
|
||||
const key = fixtures.readSync('test_key.pem', 'ascii');
|
||||
|
||||
const credentials = require('tls').createSecureContext({ ca, cert, key });
|
||||
|
||||
|
||||
@@ -33,8 +33,8 @@ const tls = require('tls');
|
||||
// https://github.com/joyent/node/issues/1218
|
||||
// uncatchable exception on TLS connection error
|
||||
{
|
||||
const cert = fixtures.readKey('rsa_cert.crt');
|
||||
const key = fixtures.readKey('rsa_private.pem');
|
||||
const cert = fixtures.readSync('test_cert.pem');
|
||||
const key = fixtures.readSync('test_key.pem');
|
||||
|
||||
const options = { cert: cert, key: key, port: common.PORT };
|
||||
const conn = tls.connect(options, common.mustNotCall());
|
||||
@@ -47,8 +47,8 @@ const tls = require('tls');
|
||||
|
||||
// SSL_accept/SSL_connect error handling
|
||||
{
|
||||
const cert = fixtures.readKey('rsa_cert.crt');
|
||||
const key = fixtures.readKey('rsa_private.pem');
|
||||
const cert = fixtures.readSync('test_cert.pem');
|
||||
const key = fixtures.readSync('test_key.pem');
|
||||
|
||||
assert.throws(() => {
|
||||
tls.connect({
|
||||
|
||||
@@ -42,7 +42,7 @@ test1();
|
||||
|
||||
// simple/test-tls-securepair-client
|
||||
function test1() {
|
||||
test('keys/rsa_private.pem', 'keys/rsa_cert.crt', null, test2);
|
||||
test('agent.key', 'agent.crt', null, test2);
|
||||
}
|
||||
|
||||
// simple/test-tls-ext-key-usage
|
||||
|
||||
@@ -51,8 +51,8 @@ function doTest() {
|
||||
|
||||
const SESSION_TIMEOUT = 1;
|
||||
|
||||
const key = fixtures.readKey('rsa_private.pem');
|
||||
const cert = fixtures.readKey('rsa_cert.crt');
|
||||
const key = fixtures.readSync('agent.key');
|
||||
const cert = fixtures.readSync('agent.crt');
|
||||
const options = {
|
||||
key: key,
|
||||
cert: cert,
|
||||
|
||||
Reference in new issue
Block a user