-
Notifications
You must be signed in to change notification settings - Fork 29.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: make more crypto tests work with BoringSSL
PR-URL: #46429 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: James M Snell <[email protected]>
- Loading branch information
1 parent
b364b9b
commit d556ccd
Showing
4 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,20 +25,20 @@ connect({ | |
assert.strictEqual(peer.subject.emailAddress, '[email protected]'); | ||
assert.strictEqual(peer.subject.CN, 'Ádám Lippai'); | ||
assert.strictEqual(peer.issuer.CN, 'ca3'); | ||
assert.strictEqual(peer.serialNumber, '5B75D77EDC7FB5B7FA9F1424DA4C64FB815DCBDE'); | ||
assert.match(peer.serialNumber, /5B75D77EDC7FB5B7FA9F1424DA4C64FB815DCBDE/i); | ||
|
||
const next = pair.client.conn.getPeerCertificate(true).issuerCertificate; | ||
const root = next.issuerCertificate; | ||
delete next.issuerCertificate; | ||
debug('next:\n', next); | ||
assert.strictEqual(next.subject.CN, 'ca3'); | ||
assert.strictEqual(next.issuer.CN, 'ca1'); | ||
assert.strictEqual(next.serialNumber, '147D36C1C2F74206DE9FAB5F2226D78ADB00A425'); | ||
assert.match(next.serialNumber, /147D36C1C2F74206DE9FAB5F2226D78ADB00A425/i); | ||
|
||
debug('root:\n', root); | ||
assert.strictEqual(root.subject.CN, 'ca1'); | ||
assert.strictEqual(root.issuer.CN, 'ca1'); | ||
assert.strictEqual(root.serialNumber, '4AB16C8DFD6A7D0D2DFCABDF9C4B0E92C6AD0229'); | ||
assert.match(root.serialNumber, /4AB16C8DFD6A7D0D2DFCABDF9C4B0E92C6AD0229/i); | ||
|
||
// No client cert, so empty object returned. | ||
assert.deepStrictEqual(pair.server.conn.getPeerCertificate(), {}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters