-
Notifications
You must be signed in to change notification settings - Fork 31
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
sha512.badssl Certificate failed #2
Comments
Hi @aancw, thanks for getting in touch. That error is not coming from HTTP Toolkit at all though. The certificate for that site really has expired. When visiting it in any browser on any device you like you will see this error, even without using HTTP Toolkit. In fact, I'm not sure what your setup is, but it looks like the browser you're showing isn't actually being intercepted by HTTP Toolkit at all. If it was, the 'Issuer' would say 'HTTP Toolkit CA'. If you do try to visit the site using a browser intercepted by HTTP Toolkit, you will see a "Certificate has expired" error, but within a normal secure response, because the HTTPS connection (from your browser to HTTP Toolkit) will work correctly, and only the upstream connection (HTTP Toolkit to the server) will fail because of the failed certificate. Does that make sense? In both cases, HTTP Toolkit isn't doing anything wrong here - the problem is that that server's certificate really has expired. This is tracked by the team running that service here: chromium/badssl.com#501. I'd suggest getting in touch with them directly if you want to help get that fixed. |
I know that the problem is in the server. What i mean, can this server url changed? Because this app cannot running without proxy. I'm using this app for the article but the demo showing error when pinning the request. |
I don't understand what you mean. Which article? Which app? |
Nevermind, I've forked the repo and change the url that work for this app and signed the apk too. |
Ah, I see! Sorry, I had no idea what you were talking about before. That makes a lot more sense now, thanks for the screenshot and info. This is now fixed in the app, there's an updated v1.3.0 available that should work correctly: https://github.com/httptoolkit/android-ssl-pinning-demo/releases/tag/v1.3.0 |
I think the v1.3.0 APK is signed already, isn't it? I was doing this manually before, but it's now automated: 04a5c5d. If you download it, you can test that for yourself:
I think that error above is because you have an app installed with the same package id but a different signature. The signature is different in this build because I've just generated a new key store for this, but if you uninstall the old version before you install the new version it should work. I don't think that matters too much, I don't expect many people are going to be upgrading between versions here, it's just a demo app. |
Nice, last time I fork the repo, the apk is not signed when running github workflow. That's why I make update on ci.yml to sign the apk. So it can be installed on the devices. |
Hi,
I'm using your app and the application is showing error when clicking the button. It say that sha512.badssl certification error. SSL Certificate for target is expired
The text was updated successfully, but these errors were encountered: