-
Notifications
You must be signed in to change notification settings - Fork 6
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
Self-signed certificate not recognized #39
Comments
I looked into it and dump some links for future me (or someone else) to look into it at a later time. Something useful might be a way to ignore certificate errors (via ClientBuilder::danger_accept_invalid_certs). Currently rustls is used instead of reqwests default OpenSSL. Maybe enabling rustls-native-certs might help in this regards. reqwest has the feature flag |
This is just my opinion but from what I can tell this is the major con of
This is not really an issue for me as I use a rolling-release distro but it's definitely an issue for those using "stable" distros. Is it possible to install both |
yeah, I think optional accept_invalid_certs with the built in certificates are a good way to work around it here. When thinking about it, as the certificates are bundled the binary has to be fairly up to date in order to ensure up to date certificates. So its either the OS or the binary itself in this case. |
Better if both options are available.
That's a problem if you, the developer, becomes inactive for a long time. Sites could become inaccessible just by using an outdated set of certificates. |
I think staying with rustls seems like the best choice. Building with updated dependencies will be possible even if become inactive as this is an open-source tool which can be self compiled. Also rustls isnt using external non-rust-stuff which is probably a safer thing to do in general. We just need to be aware that regular updates are a must when rustls is included in the binary and not on system level. I added Regarding the self signed certificates using the system store might be a good solution but as long as there isnt bigger interest I think using |
As this feature seems to be working generally I will close this issue. If there are other feature requests or ideas feel free to comment or open a new issue. |
Describe the bug
I'm testing website-stalker against my website on my local network. It has a certificate trusted by my device. Running website-stalker gives me an error saying it's an invalid certificate.
Versions
To Reproduce
Steps to reproduce the behavior:
website-stalker run --all --commit
Expected behavior
The error should not be there. The contents of the webpage should have been committed.
Additional information
website-stalker.yaml
Error:
The text was updated successfully, but these errors were encountered: