Skip to content

feature: remove subjectaltname check#539

Merged
dyaa merged 4 commits intodyaa:masterfrom
khpeet:master
May 8, 2024
Merged

feature: remove subjectaltname check#539
dyaa merged 4 commits intodyaa:masterfrom
khpeet:master

Conversation

@khpeet
Copy link
Copy Markdown
Contributor

@khpeet khpeet commented May 3, 2024

Added additional config option to choose if the subjectaltname should be required for a given certificate to be valid, since it is an optional field to configure within a certificate. Allows for more flexibility to validate certificates without this configured.

Comment thread src/index.ts Outdated
Comment on lines 38 to 39
validateSubjectAltName: boolean,
options: Partial<https.RequestOptions> = {}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep validateSubjectAltName part of the options instead of having own parameter?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dyaa - Not sure I follow - this is a custom boolean config - Are you saying to change the logic to make the https request itself different depending on that flag? Currently I'm only using the flag post http request to decide whether to validate subjectaltname response or not.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See latest commit - I've moved the logic into the http request/response itself - does that work?

@dyaa
Copy link
Copy Markdown
Owner

dyaa commented May 8, 2024

Fixes #538

@dyaa dyaa merged commit 935b2f9 into dyaa:master May 8, 2024
@khpeet khpeet mentioned this pull request May 10, 2024
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

Successfully merging this pull request may close these issues.

2 participants