Is it possible to verify specific TLS or SSL version on application code level ? Is it possible to restrict the application to use only specific TLS or SSL version ?
Consider a scenario, the web server supports TLS 1.0, 1.1, and 1.2. The mobile application (either android or iOS) is build with newer API/SDK that supports TLS 1.2 as well. In theory, TLS context will fall back to the lower one in any cases of negotiation exceptions. So, is there any possible way to validate in the application code that it should only use TLS 1.2 and should not accept lower versions.
I saw some discussion here SSL context can be verified in android. Android TLS connection and self signed certificate. But will the OS override this if any fallback happens at server side ?