-
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
TLS not working due to certificate expiration date checks. #7
Comments
With certificate exp-check turned off, here's a screenshot of |
Hi, |
Yes if you want to, there are some hacky workarounds but no catch-all solution.
Basically all libs defined in LD_PRELOAD are linked from right to left:
So if you test that a binary links to a library e.g. libssl or libgnutls.so (ldd "${binary}" | grep ...) it can append it at the end of LD_PRELOAD value. The TLS/SSL libraries will be linked first, getting the canonical time functions from libc. |
Also I guess you can add the screenshot to "Programs compatible with sdate" in the website :) |
TBH I didn't even get what the problem is. What did you do exactly, how do I reproduce? |
TLS libraries check that remote certificates have not expired. Since the dates are tampered with, they will not see valid certificates (i.e certificates that have expiration date in the future) |
I haven't seen how the dynamic linking injection works in sdate, but it can be solved if the tls lib is added at the end of LD_PRELOAD. If the tls functions are static though, then there's nothing that can be done.
The text was updated successfully, but these errors were encountered: