| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -29,8 +29,8 @@ const tls = require('tls'); | |||
| 29 | 29 | const fixtures = require('../common/fixtures'); | |
| 30 | 30 | ||
| 31 | 31 | const options = { | |
| 32 | - key: fixtures.readSync('agent.key'), | ||
| 33 | - cert: fixtures.readSync('multi-alice.crt') | ||
| 32 | + key: fixtures.readKey('rsa_private.pem'), | ||
| 33 | + cert: fixtures.readKey('rsa_cert.crt') | ||
| 34 | 34 | }; | |
| 35 | 35 | ||
| 36 | 36 | const server = tls.createServer(options, function(cleartext) { | |
@@ -42,7 +42,7 @@ server.once('secureConnection', common.mustCall(function(socket) { | |||
| 42 | 42 | // The server's local cert is the client's peer cert. | |
| 43 | 43 | assert.deepStrictEqual( | |
| 44 | 44 | cert.subject.OU, | |
| 45 | - ['Information Technology', 'Engineering', 'Marketing'] | ||
| 45 | + ['Test TLS Certificate', 'Engineering'] | ||
| 46 | 46 | ); | |
| 47 | 47 | })); | |
| 48 | 48 | ||
@@ -54,7 +54,7 @@ server.listen(0, common.mustCall(function() { | |||
| 54 | 54 | const peerCert = socket.getPeerCertificate(); | |
| 55 | 55 | assert.deepStrictEqual( | |
| 56 | 56 | peerCert.subject.OU, | |
| 57 | - ['Information Technology', 'Engineering', 'Marketing'] | ||
| 57 | + ['Test TLS Certificate', 'Engineering'] | ||
| 58 | 58 | ); | |
| 59 | 59 | server.close(); | |
| 60 | 60 | })); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments