I’d really like to be able to recognize multiple certificates via SNI (Server Name Indication), and send back the appropriate one. There’s nothing like that in the Crystal code for HTTPS::Server, but I think maybe it might be done at the openssl level? This is one of the last things I need to tackle before I can drop nginx completely off of my home server.
If you use the OpenSSL::SSL::Context#ca_certificates_path
property, does it not pick the correct cert when using SNI on the client side?