test: rename agent1-pfx.pem to agent1.pfx
PFX is not PEM, its binary DER. Use the same .pfx extension as test/fixtures/test_cert.pfx does. PR-URL: https://github.com/nodejs/node/pull/24374 Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
This commit is contained in:
parent
a56968698d
commit
f770106e91
8
test/fixtures/keys/Makefile
vendored
8
test/fixtures/keys/Makefile
vendored
@ -92,13 +92,13 @@ agent1-cert.pem: agent1-csr.pem ca1-cert.pem ca1-key.pem
|
||||
-CAcreateserial \
|
||||
-out agent1-cert.pem
|
||||
|
||||
agent1-pfx.pem: agent1-cert.pem agent1-key.pem ca1-cert.pem
|
||||
agent1.pfx: agent1-cert.pem agent1-key.pem ca1-cert.pem
|
||||
openssl pkcs12 -export \
|
||||
-descert \
|
||||
-in agent1-cert.pem \
|
||||
-inkey agent1-key.pem \
|
||||
-certfile ca1-cert.pem \
|
||||
-out agent1-pfx.pem \
|
||||
-out agent1.pfx \
|
||||
-password pass:sample
|
||||
|
||||
agent1-verify: agent1-cert.pem ca1-cert.pem
|
||||
@ -334,12 +334,12 @@ ec-cert.pem: ec-csr.pem ec-key.pem
|
||||
-signkey ec-key.pem \
|
||||
-out ec-cert.pem
|
||||
|
||||
ec-pfx.pem: ec-cert.pem ec-key.pem
|
||||
ec.pfx: ec-cert.pem ec-key.pem
|
||||
openssl pkcs12 -export \
|
||||
-descert \
|
||||
-in ec-cert.pem \
|
||||
-inkey ec-key.pem \
|
||||
-out ec-pfx.pem \
|
||||
-out ec.pfx \
|
||||
-password pass:
|
||||
|
||||
dh512.pem:
|
||||
|
BIN
test/fixtures/keys/ec-pfx.pem
vendored
BIN
test/fixtures/keys/ec-pfx.pem
vendored
Binary file not shown.
BIN
test/fixtures/keys/ec.pfx
vendored
Normal file
BIN
test/fixtures/keys/ec.pfx
vendored
Normal file
Binary file not shown.
@ -10,10 +10,10 @@ const fixtures = require('../common/fixtures');
|
||||
const options = {
|
||||
pfx: [
|
||||
{
|
||||
buf: fixtures.readKey('agent1-pfx.pem'),
|
||||
buf: fixtures.readKey('agent1.pfx'),
|
||||
passphrase: 'sample'
|
||||
},
|
||||
fixtures.readKey('ec-pfx.pem')
|
||||
fixtures.readKey('ec.pfx')
|
||||
]
|
||||
};
|
||||
|
||||
|
@ -35,7 +35,7 @@ const assert = require('assert');
|
||||
|
||||
const SSL_OP_NO_TICKET = require('crypto').constants.SSL_OP_NO_TICKET;
|
||||
|
||||
const pfx = fixtures.readKey('agent1-pfx.pem');
|
||||
const pfx = fixtures.readKey('agent1.pfx');
|
||||
|
||||
function test(testOptions, cb) {
|
||||
|
||||
|
@ -11,7 +11,7 @@ const fixtures = require('../common/fixtures');
|
||||
const assert = require('assert');
|
||||
const tls = require('tls');
|
||||
|
||||
const pfx = fixtures.readKey('agent1-pfx.pem');
|
||||
const pfx = fixtures.readKey('agent1.pfx');
|
||||
|
||||
const server = tls
|
||||
.createServer(
|
||||
|
Loading…
x
Reference in New Issue
Block a user