horazont / aioopenssl

(START-)TLS-capable transport using OpenSSL for asyncio
Apache License 2.0
15 stars 7 forks source link

Does it support server mode? #17

Closed paulo-raca closed 2 years ago

paulo-raca commented 2 years ago

Hello!

Thank you for this library, it looks like what I need!

For context, I'm playing with the idea of an HTTPS server that lazily produces certificate from ACME/Let's Encrypt when they are first accessed.

To do this I need to execute my code (a blocking asyncio callback) after the SSL handshake to and use the SNI and ALPN data to fetch/generate the correct certificate

However it is not completely clear how to do that:

Thank you!

horazont commented 2 years ago

No, server mode is currently not supported. An implementation was started in #5, but it was never finished.

paulo-raca commented 2 years ago

Thanks!

matgnt commented 1 year ago

Argh! Should we add this information to the Readme? It took me a while to find this closed issue containing this very relevant information.