Import std.net.tls
TlsServer
class
Public Class TlsServer
A server of TLS, which accepts connections over streams with its certificate chain and key, and can ask each client for a certificate that a root it trusts signed.
-
A server whose certificate is
chain's first, which the others signed, up to one a client's root signed, and whose private key iskey. Panics when thechainis empty, or a certificate is one mbedTLS can't read, or thekeyisn't the first certificate's privatekey, of ECDSA P-256 or RSA, or the first certificate's usages aren't a TLS server's. -
Picks the first of the application
protocols, most wanted first, that a client offers, which the TlsStream's Protocol says, and refuses a client that offers only others. Panics for a name that isn't 1 to 255 bytes, or has a NUL, or names that come to more than 8192 bytes, each with 1 more. -
Gives connections
chainandkeyfrom then on, as a renewed certificate is given; those accepted before keep what they had. Panics as New does. -
Asks each client for a certificate that one of
rootssigned, and refuses a client without one, from then on. -
TLS over
stream, from a client, once the handshake is done. -
Accept's Async twin, which waits on the main thread.
Report an issue with this page or with FutureBlitz on GitHub.