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

Platform specific regex pattern question #234

Open
pyrooka opened this issue Aug 28, 2024 · 0 comments
Open

Platform specific regex pattern question #234

pyrooka opened this issue Aug 28, 2024 · 0 comments

Comments

@pyrooka
Copy link

pyrooka commented Aug 28, 2024

Hello! I'm wondering about something and would like to ask some help/verification.
So, in the client there is a regex pattern which validates against errors caused by untrusted certificates.

notTrustedErrorRe = regexp.MustCompile(`certificate is not trusted`)

However, in the Go source code I see the following

macosErr:   "x509: “valid.testing.golang.invalid” certificate is not trusted",
windowsErr: "x509: certificate signed by unknown authority",

source
Does this mean there should be a different, platform specific regex pattern for Windows?

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