Where to get OpenSSL binary for Android? I have a Nexus 10 (unlocked &amp; rooted) and I wanted to get the openssl binary on there so I can verify HTTPS certificates:

$ openssl s_client -connect &lt;IPADDRESS&gt;


However, no matter what I do I can't find a simple way of getting OpenSSL on Android so I can run the command above. I found something about 'opkg' but I couldn't get this process working. It was also incredibly complex. There is also an app called "Botbrew", but this project seems dead and doesn't work.

Anyone know how to get OpenSSL binary on my Nexus 10? At the very least, how can I view the certificate chain that Google uses when negotiating SSL handshake for the Gmail app (this is ultimately my goal)?

Thanks.
Your best bet will be to build it from source.

There are a few StackOverflow questions that you might want to reference if you haven't already.

How to use openSSL Library in the ANDROID application

How to build OpenSSL on Android/Linux ?

Openssl Build Issue with Android NDK r8

The first SO has an answer linking to a GitHub project android-external-openssl.  I would suggest trying to work with this code as a starting point.