Find openssl and TLS protocol version

To get the version of OpenSSL installed on the OS:

$ openssl version
OpenSSL 1.0.1t  3 May 2016

To get the TLS/SSL protocol version, establish a secure connection to any of the servers on the web and the session information would have details of the Protocol.

$ openssl s_client -connect www.google.com:443
CONNECTED(00000003)
depth=3 C = US, O = Equifax, OU = Equifax Secure Certificate Authority
verify return:1
depth=2 C = US, O = GeoTrust Inc., CN = GeoTrust Global CA
verify return:1
depth=1 C = US, O = Google Inc, CN = Google Internet Authority G2
verify return:1
depth=0 C = US, ST = California, L = Mountain View, O = Google Inc, CN = www.google.com
verify return:1
---
Certificate chain
 0 s:/C=US/ST=California/L=Mountain View/O=Google Inc/CN=www.google.com
   i:/C=US/O=Google Inc/CN=Google Internet Authority G2
 1 s:/C=US/O=Google Inc/CN=Google Internet Authority G2
   i:/C=US/O=GeoTrust Inc./CN=GeoTrust Global CA
 2 s:/C=US/O=GeoTrust Inc./CN=GeoTrust Global CA
   i:/C=US/O=Equifax/OU=Equifax Secure Certificate Authority
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIEgDCCA2igAwIBAgIIK6L1O7WFg3UwDQYJKoZIhvcNAQELBQAwSTELMAkGA1UE
BhMCVVMxEzARBgNVBAoTCkdvb2dsZSBJbmMxJTAjBgNVBAMTHEdvb2dsZSBJbnRl
cm5ldCBBdXRob3JpdHkgRzIwHhcNMTYwOTE0MDgyMDQwWhcNMTYxMjA3MDgxOTAw
WjBoMQswCQYDVQQGEwJVUzETMBEGA1UECAwKQ2FsaWZvcm5pYTEWMBQGA1UEBwwN
TW91bnRhaW4gVmlldzETMBEGA1UECgwKR29vZ2xlIEluYzEXMBUGA1UEAwwOd3d3
Lmdvb2dsZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCAmQKH
oFWTZ2HK2CN21xj8iEDvGoySc4qlPD3pmJpJFxO533WEPhnd//6QF+Krr3DMaLzS
8dj0mzSTHRnBgecv8/IYtvwaon28S8fdTJExgEZopfyCRTxG8FZ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C=US/ST=California/L=Mountain View/O=Google Inc/CN=www.google.com
issuer=/C=US/O=Google Inc/CN=Google Internet Authority G2
---
No client certificate CA names sent
---
SSL handshake has read 3727 bytes and written 415 bytes
---
New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES128-GCM-SHA256
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
SSL-Session:
    Protocol  : TLSv1.2
    Cipher    : ECDHE-RSA-AES128-GCM-SHA256
    Session-ID: 519CA9ADE744B72A3E428105172579761A0E104E100CD11BA496497D4769E487
    Session-ID-ctx: 
    Master-Key: BEE6BD732D3D48B68FD96C37BD0A072B3A31C78253CDBA0F623D9DB0FCE5D06F9DC13AD298EE48922B85D824FCE35C74
    Key-Arg   : None
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    TLS session ticket lifetime hint: 100800 (seconds)
    TLS session ticket:
    0000 - fa 11 30 4d e2 45 8a a8-34 3b a5 b4 cd 1e c6 0a   ..0M.E..4;......
    0010 - ed 1e 03 d6 66 fb 83 c7-fb c5 ac e6 eb 69 2f c2   ....f........i/.
    0020 - 72 8f 38 a0 ba 1b 9b f5-34 70 63 6d 36 db 0a 0f   r.8.....4pcm6...
    0030 - 32 38 d9 03 df 10 78 2a-66 22 e5 eb c2 c4 c1 44   28....x*f".....D
    0040 - eb 36 ab d5 05 ed 54 20-37 8b b1 a8 2f 9a 2f ae   .6....T 7..././.
    0050 - 00 30 48 36 58 4c 80 1f-38 5c b9 da b3 85 8e f7   .0H6XL..8\......
    0060 - c8 dd 59 00 5c e8 ad 5e-7b 1d e7 1d e0 a2 ee 4b   ..Y.\..^{......K
    0070 - ec 5b d7 08 b0 24 1e a2-1a fd 47 74 b1 8b 1b b7   .[...$....Gt....
    0080 - 55 dd 01 c5 c7 29 fb f4-ec f3 88 27 d2 93 8c 32   U....).....'...2
    0090 - 7b e2 1b 54 b8 22 bf 90-f0 63 5c 46 14 9f a8 ad   {..T."...c\F....
    00a0 - 7b 5d 51 1d                                       {]Q.

    Start Time: 1473883627
    Timeout   : 300 (sec)
    Verify return code: 0 (ok)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s