NAME

Net::mbedTLS::Server - Class representing a TLS server

SYNOPSIS

my $listener = IO::Socket::INET->new(
    Listen => 1,
    LocalAddr => 'localhost:443',
) or die;

my $peer = $listener->accept();

my $tls = Net::mbedTLS->new()->create_server(
    $peer,

    key_and_cert => [ $key, @cert_chain ],

    servername_cb => sub {
        return $key_and_certs_pem;
    },
);

DESCRIPTION

Subclass of Net::mbedTLS::Connection.