Skip to content

Commit

Permalink
[test] Rename certificates and private keys files
Browse files Browse the repository at this point in the history
Rename `ca1-cert.pem` to `ca-certificate.pem`, `ca1-key.pem` to
`ca-key.pem`, `agent1-cert.pem` to `client-certificate.pem`, and
`agent1-key.pem` to `client-key.pem`.
  • Loading branch information
lpinca committed May 27, 2021
1 parent d18c677 commit 262e45a
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions test/websocket.test.js
Expand Up @@ -2180,7 +2180,7 @@ describe('WebSocket', () => {
it('connects to secure websocket server with client side certificate', (done) => {
const server = https.createServer({
cert: fs.readFileSync('test/fixtures/certificate.pem'),
ca: [fs.readFileSync('test/fixtures/ca1-cert.pem')],
ca: [fs.readFileSync('test/fixtures/ca-certificate.pem')],
key: fs.readFileSync('test/fixtures/key.pem'),
requestCert: true
});
Expand All @@ -2202,8 +2202,8 @@ describe('WebSocket', () => {

server.listen(0, () => {
const ws = new WebSocket(`wss://localhost:${server.address().port}`, {
cert: fs.readFileSync('test/fixtures/agent1-cert.pem'),
key: fs.readFileSync('test/fixtures/agent1-key.pem'),
cert: fs.readFileSync('test/fixtures/client-certificate.pem'),
key: fs.readFileSync('test/fixtures/client-key.pem'),
rejectUnauthorized: false
});
});
Expand Down

0 comments on commit 262e45a

Please sign in to comment.