Ticket Change Details
Overview

Artifact ID: 9ee42ad0bc646dd47f61ed22cebebc36f408a6b5dcab7e7b9f10279b92ed8b82
Ticket: 9afaf41635dd222b8e8cfaa0f3b61f0e52abd707
tls::socket, but with shared SSL_CTX
User & Date: anonymous on 2025-10-07 13:21:44
Changes

  1. foundin changed to: "1.8.0"
  2. icomment:
    When opening a server socket with `tls::socket -server`, every time a client connects, a new SSL_CTX structure is created for that connection.
    This means, if certificates are provided with `-certfile`, `-cafile` and `-keyfile`, they are opened and read for every connection, as can be seen with `strace`. How do I avoid this?
    
    - Using `-cert` and `-file` instead requires a manual conversion of PEM-files to DER (and there is no equivalent for `-cafile`).
    - `-model` cannot be supplied to `tls::socket`, but this would require a weird workaround to get a "model connection" anyway.
    
    Optimally `tls::socket -server` would cache the first SSL_CTX and use it for subsequent connections.
    
  3. login: "anonymous"
  4. mimetype: "text/x-markdown"
  5. severity changed to: "Minor"
  6. status changed to: "Open"
  7. title changed to: "tls::socket, but with shared SSL_CTX"
  8. type changed to: "Code Defect"