Skip to content

Commit c910af5

Browse files
committed
Update TLS tests to match recent external cert issues changes
1 parent ea1fbdb commit c910af5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/integration/https.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ describe("When configured for HTTPS", () => {
201201

202202
const cert = tlsSocket.getPeerCertificate();
203203
expect(cert.subject.CN).to.equal('example.testserver.host');
204-
expect(cert.issuer.CN).to.include('ZeroSSL RSA Domain Secure Site CA'); // <-- This is the real issuer, right now at least
204+
expect(cert.issuer.O).to.include('Google Trust Services');
205205
});
206206

207207
it("bypasses Mockttp for TLS connections inside matching HTTP/1 CONNECT tunnel", async () => {
@@ -221,7 +221,7 @@ describe("When configured for HTTPS", () => {
221221

222222
const cert = tlsSocket.getPeerCertificate();
223223
expect(cert.subject.CN).to.equal('*.ip-api.com');
224-
expect(cert.issuer.CN).to.include('Sectigo RSA Domain Validation Secure');
224+
expect(cert.issuer.O).to.include('Sectigo Limited');
225225
});
226226

227227
it("still handles matching CONNECT-tunnelled plain-HTTP requests", async () => {

0 commit comments

Comments
 (0)