OsGate.org Logo

Previous Previous | Next Next

HTTP connections with OpenSSL - https openssl web http protocol secure

Networks Networks

Date 27.01.2016

Visits 641



Simple command used to open a HTTPS connection with OpenSSL

# openssl s_client -connect osgate.org:443 

CONNECTED(00000003)
depth=0 OU = GT32797456, OU = See www.rapidssl.com/resources/cps (c)15, OU = Domain Control V
alidated - RapidSSL(R), CN = osgate.org
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 OU = GT32797456, OU = See www.rapidssl.com/resources/cps (c)15, OU = Domain Control V
alidated - RapidSSL(R), CN = osgate.org
verify error:num=27:certificate not trusted
verify return:1
depth=0 OU = GT32797456, OU = See www.rapidssl.com/resources/cps (c)15, OU = Domain Control V
alidated - RapidSSL(R), CN = osgate.org
verify error:num=21:unable to verify the first certificate
verify return:1
---
Certificate chain
0 s:/OU=GT32797456/OU=See www.rapidssl.com/resources/cps (c)15/OU=Domain Control Validated -
RapidSSL(R)/CN=osgate.org
  i:/C=US/O=GeoTrust Inc./CN=RapidSSL SHA256 CA - G3
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIElzCCA3+gAwIBAgIDBGreMA0GCSqGSIb3DQEBCwUAMEcxCzAJBgNVBAYTAlVT
MRYwFAYDVQQKEw1HZW9UcnVzdCBJbmMuMSAwHgYDVQQDExdSYXBpZFNTTCBTSEEy
NTYgQ0EgLSBHMzAeFw0xNTA1MTUyMTAxMjJaFw0xNzA1MTcwODQ5MTlaMIGOMRMw
EQYDVQQLEwpHVDMyNzk3NDU2MTEwLwYDVQQLEyhTZWUgd3d3LnJhcGlkc3NsLmNv
bS9yZXNvdXJjZXMvY3BzIChjKTE1MS8wLQYDVQQLEyZEb21haW4gQ29udHJvbCBW
YWxpZGF0ZWQgLSBSYXBpZFNTTChSKTETMBEGA1UEAxMKb3NnYXRlLm9yZzCCASIw
DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKZg2qbFg6u4Otu689ec9wgPLyoS
F5mSw9GPKJMeHCyrsR9kw9wXqowFnZ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p+Xiosc
YUjJdknf682NJmtlKd/8jGHERJ+py+KNhDIE
-----END CERTIFICATE-----
subject=/OU=GT32797456/OU=See www.rapidssl.com/resources/cps (c)15/OU=Domain Control Validate
d - RapidSSL(R)/CN=osgate.org
issuer=/C=US/O=GeoTrust Inc./CN=RapidSSL SHA256 CA - G3
---
No client certificate CA names sent
---
SSL handshake has read 1870 bytes and written 422 bytes
---
New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES256-GCM-SHA384
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
SSL-Session:
   Protocol  : TLSv1.2
   Cipher    : ECDHE-RSA-AES256-GCM-SHA384
   Session-ID: D5F93E82C3319BB493F5C8C2D3D2AE9EA8758A711938EC13F7A15C9FDECFEE19
   Session-ID-ctx:  
   Master-Key: D317E66FBA68A390A4E8FF7D9D3B0368A065C278F290F3757DDB34A4521D3AA73AA4329C2825C
DE56F51341499FCF519
   Key-Arg   : None
   PSK identity: None
   PSK identity hint: None
   SRP username: None
   TLS session ticket lifetime hint: 300 (seconds)
   TLS session ticket:
   0000 - 59 0d b8 6e e7 09 15 e9-cf 99 b0 2a 56 92 1c fe   Y..n.......*V...
   0010 - 30 08 e1 d8 62 c1 76 0c-4b e8 d3 0a 5d 48 ff 48   0...b.v.K...]H.H
   0020 - c9 84 5f f6 d0 e7 f2 23-bc ef 98 2b f0 61 95 ef   .._....#...+.a..
   0030 - 51 fd 2b 37 46 96 48 9b-a1 e8 ca d9 d5 16 ed e4   Q.+7F.H.........
   0040 - 01 aa 13 d6 71 64 5b a7-48 6a eb 93 15 26 3e 44   ....qd[.Hj...&>D
   0050 - ff 05 bf e2 27 fd 87 f8-cd 94 a4 52 e4 57 6c bd   ....'......R.Wl.
   0060 - 52 d5 88 25 75 b6 90 1a-cd 3e 42 b3 de 89 52 2e   R..%u....>B...R.
   0070 - 23 4d ee a5 62 28 9d 0c-66 e8 56 d4 89 e3 1b a6   #M..b(..f.V.....
   0080 - 4e 58 92 25 b2 24 c6 ff-b7 44 63 0c 01 c8 f7 b9   NX.%.$...Dc.....
   0090 - 52 38 53 d7 64 30 31 0e-90 2a fe 91 b8 f4 f2 fe   R8S.d01..*......
   00a0 - 41 25 c3 0a 35 af e3 6f-7b 3a 03 f4 d5 fc 95 17   A%..5..o{:......
   00b0 - d9 48 7e fb 05 53 b4 a0-00 df c3 6f 69 4f e1 7e   .H~..S.....oiO.~

   Start Time: 1453919080
   Timeout   : 300 (sec)
   Verify return code: 21 (unable to verify the first certificate)
---
GET / HTTP/1.1
Host: osgate.org

.....