Skip to content

Commit 6b0c35c

Browse files
authored
Merge pull request #95 from devjerry/fix-cert-alt-names
Fix NET::ERR_CERT_COMMON_NAME_INVALID error in Chrome 58 and up
2 parents 48ff764 + 7c486c0 commit 6b0c35c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sni-spoofer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export class SNISpoofer extends EventEmitter {
4242
locality: 'Provo',
4343
organization: 'ACME Tech Inc',
4444
commonName: serverName,
45+
altNames: [serverName],
4546
serviceKey: rootKey,
4647
serviceCertificate: rootCert,
4748
serial: Date.now(),

0 commit comments

Comments
 (0)