The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Net::mbedTLS::Connection::Tied

SYNOPSIS

    my $fh = IO::Socket::INET->new('perl.org:443');

    my $tls_fh = Net::mbedTLS->new()->create_client($fh)->tied_fh();

… and $tls_fh works like an ordinary Perl filehandle.

DESCRIPTION

This module is a bit like IO::Socket::SSL: it lets you use Perl’s I/O builtins (e.g., print) to speak TLS.

Notable differences from IO::Socket::SSL include:

  • You don’t instantiate this class directly; instead, create a Net::mbedTLS::Connection, and have that object create an instance of this class.

  • mbedTLS does its own hostname verification, which obviates much of IO::Socket::SSL’s implementation logic.