User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
cpp:ssl-srv7 [2019-04-27 22:23]
ziggi created
cpp:ssl-srv7 [2019-05-28 15:26] (current)
Line 6: Line 6:
 <code c++ main.cpp>​ <code c++ main.cpp>​
 /* /*
- * Copyright 2019 Oleg Borodin ​ <​borodin@unix7.org>​+ * Copyright ​2004-2019 Oleg Borodin ​ <​borodin@unix7.org>​
  */  */
  
Line 33: Line 33:
 /* /*
  *  *
- * Copyright 2019 Oleg Borodin ​ <​borodin@unix7.org>​+ * Copyright ​2004-2019 Oleg Borodin ​ <​borodin@unix7.org>​
  *  *
  */  */
Line 87: Line 87:
 <code c++ server.cpp>​ <code c++ server.cpp>​
 /* /*
- * Copyright 2019 Oleg Borodin ​ <​borodin@unix7.org>​+ * Copyright ​2004-2019 Oleg Borodin ​ <​borodin@unix7.org>​
  */  */
  
Line 176: Line 176:
 <code c++ connection.hpp>​ <code c++ connection.hpp>​
 /* /*
- * Copyright 2019 Oleg Borodin ​ <​borodin@unix7.org>​+ * Copyright ​2004-2019 Oleg Borodin ​ <​borodin@unix7.org>​
  */  */
  
Line 230: Line 230:
 <code c++ connection.cpp>​ <code c++ connection.cpp>​
 /* /*
- * Copyright 2019 Oleg Borodin ​ <​borodin@unix7.org>​+ * Copyright ​2004-2019 Oleg Borodin ​ <​borodin@unix7.org>​
  */  */
  
Line 401: Line 401:
  ​100% ​   705 (longest request)  ​100% ​   705 (longest request)
  
 +</​file>​
 +
 +
 +<​file>​
 +$ curl -vk '​https://​localhost:​1026/'​
 +*   ​Trying 127.0.0.1...
 +* Connected to localhost (127.0.0.1) port 1026 (#0)
 +* ALPN, offering h2
 +* ALPN, offering http/1.1
 +* Cipher selection: ALL:​!EXPORT:​!EXPORT40:​!EXPORT56:​!aNULL:​!LOW:​!RC4:​@STRENGTH
 +* successfully set certificate verify locations:
 +*   ​CAfile:​ /​usr/​local/​etc/​ca-bundle.crt
 +  CApath: none
 +* TLSv1.2 (OUT), TLS header, Certificate Status (22):
 +* TLSv1.2 (OUT), TLS handshake, Client hello (1):
 +* TLSv1.2 (IN), TLS handshake, Server hello (2):
 +* TLSv1.2 (IN), TLS handshake, Certificate (11):
 +* TLSv1.2 (IN), TLS handshake, Server finished (14):
 +* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
 +* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
 +* TLSv1.2 (OUT), TLS handshake, Finished (20):
 +* TLSv1.2 (IN), TLS change cipher, Client hello (1):
 +* TLSv1.2 (IN), TLS handshake, Finished (20):
 +* SSL connection using TLSv1.2 / AES256-GCM-SHA384
 +* ALPN, server did not agree to a protocol
 +* Server certificate:​
 +*  subject: C=US; CN=unix7.org
 +*  start date: Oct  6 07:28:03 2017 GMT
 +*  expire date: Oct  5 23:37:00 2019 GMT
 +*  issuer: C=ES; O=StartCom CA; OU=StartCom Certification Authority; CN=StartCom BR SSL ICA
 +*  SSL certificate verify result: self signed certificate in certificate chain (19), continuing anyway.
 +> GET / HTTP/1.1
 +> Host: localhost:​1026
 +> User-Agent: curl/7.48.0
 +> Accept: */*
 +
 +< HTTP/1.1 200 OK
 +< Date: Sat, 27 Apr 2019 20:31:44 UTC
 +< Server: Srv3/0.1
 +< Content-Length:​ 60000
 +< Content-Type:​ text/plain
 +< Connection: close
 +
 +hello!hello! ....
 </​file>​ </​file>​