-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 renegotiation #1015
Comments
The TLS protocol allows the client to either ignore the renegotiation request or to explicity reject it, however the server is then free to abort the connection, so in that case there's no workaround. The main use of renegotiation is to upgrade to mutual authentication (from an initial server-auth-only connection), so it's not usually optional. We currently attempt to support renegotiation under restricted (but common) conditions (to avoid known issues). After the fix that went in for #990, I understand that people are reporting it working. However you will need the latest beta version (currently 170b07) from https://downloads.bouncycastle.org/betas/, and since you are using BCJSSE, you'd have to enable renegotiation in the client by setting the system property |
Hi Peter, |
Hi Peter, after upgrading to this beta version some parts of our code (not regarded to tls) is giving as the following error when in comes to asn.1 parsing as a side effect: "object explicit - implicit expected". The previous version of the BC provider had no such problem. Do you have any clues why this happens? Again, thanks for your help, best regards, Alex |
Stack trace please, and if you can see this in a debugger then follow the stacktrace back up to the point where you can capture the full ASN.1 structure that is being parsed. |
Hi Peter, sorry for the late reply. Here is the relevant part of the staktrace:
being invoked as: Again, the point is, that with the former version used (1.69), no such problem occured. Regards, |
Thanks, @donniedump . 1.70 will include an overhaul of tagged objects, which leads to catching more errors (and things like this which are more of a grey area). I've patched bc-java and opened an issue on cert-cvc to clarify things: Keyfactor/ejbca-cert-cvc#3 . |
Hi Peter, thank you for the quick fix! Regards, |
Fixed in 1.70. |
Hi,
i found the following issue (#593), and i'm facing the same problem, that is, i'm trying to use bc tls (jsse provider) as a client when connecting to a server, using mutual certificate based authentication. The target server is not under my control, i cannot change the way it is implemented, and i cannot establish the tls channel, as the server is initiating a tls renegotiation, which the bc client won't tolerate. Is there a way to circumvent this behaviour even though its against security considerations? Should i try to make a custom BC fork, and comment out the line(s) causing the alert being raised, or is this modification something way more involved than that? Any other recommendations are welcome!
Thanks in advance, Alex
The text was updated successfully, but these errors were encountered: