tls,tools: update BoringSSL pin and TLS errors

Use BoringSSL 0.20261020.0 for shared-library builds and expose the
package wrapper's version to the matrix updater.

The new verifier no longer emits UNABLE_TO_VERIFY_LEAF_SIGNATURE
after Node's verification callback accepts a missing-issuer error.
Expect UNABLE_TO_GET_ISSUER_CERT_LOCALLY for the affected leaf
certificates and suggest --use-system-ca for that error.

Drop the SSL_get_server_tmp_key() fallback now that BoringSSL supplies
SSL_get_peer_tmp_key() as a compatibility stub.

Refs: https://boringssl-review.googlesource.com/c/boringssl/+/103849
Refs: https://github.com/electron/electron/pull/55110/changes/b457e70e339e8bb3066b210edfb6f96582cdb374
Signed-off-by: Filip Skokan <panva.ip@gmail.com>
Assisted-by: Codex
PR-URL: https://github.com/nodejs/node/pull/66922
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Filip Skokan authored and Node.js GitHub Bot committed 2026-10-24 22:04:13 +00:00
1 parent 41b1e6845a
commit a2ce2c6def
25 files changed
+77 -42

No files matched your search

@@ -5,6 +5,8 @@ const fixtures = require('../common/fixtures');
if (!common.hasCrypto)
common.skip('missing crypto');
const { untrustedLeafErrorCode } = require('../common/tls');
const assert = require('assert');
const https = require('https');
@@ -17,7 +19,6 @@ const options = {
const expectedHeader = /^HTTP\/1\.1 200 OK/;
const expectedBody = /hello world\n/;
const expectCertError = /^UNABLE_TO_VERIFY_LEAF_SIGNATURE$/;
function checkRequest(socket, server) {
let result = '';
@@ -112,7 +113,7 @@ function createServer() {
const options = null;
const socket = agent.createConnection(port, host, options);
socket.on('error', common.mustCall((e) => {
assert.match(e.code, expectCertError);
assert.strictEqual(e.code, untrustedLeafErrorCode);
server.close();
}));
}));
@@ -127,7 +128,7 @@ function createServer() {
const options = undefined;
const socket = agent.createConnection(port, host, options);
socket.on('error', common.mustCall((e) => {
assert.match(e.code, expectCertError);
assert.strictEqual(e.code, untrustedLeafErrorCode);
server.close();
}));
}));