Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL Certificate Error: Cannot read properties of undefined (reading 'match') #127

Open
kopertop opened this issue May 29, 2024 · 0 comments

Comments

@kopertop
Copy link

When a site has a very bad SSL Certificate, it can cause the following uncaught (and uncatchable) exception:

Cannot read properties of undefined (reading 'match')
node_modules/.pnpm/[email protected]/node_modules/fetch-h2/dist/lib/san.js33:39
const regexes = [];
if (cert) {
    getNames(cert).forEach(name => {
        if (name.match(/.*\*.*\*.*/))
            throw new Error(`Invalid CN/subjectAltNames: ${name}`);
        if (name.includes("*"))
            regexes.push(new RegExp(makeRegex(name)));

Current example: https://kawvalleyeaglesday.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant