Twiggy::TLS(3pm)
π Twiggy::TLS π
okay so bestie, this is a page from the User Contributed Perl Documentation for Twiggy::TLS β the module that lets your Twiggy server speak TLS. no cap, it's a whole glow-up for your plain old HTTP situation. π¦
β¨ NAME β¨
Twiggy::TLS β Twiggy server with TLS support. that's it, that's the vibe. π
πΈ SYNOPSIS πΈ
like, the fastest way in is straight from the command line:
twiggy --server Twiggy::TLS --tls-key key.pem --tls-cert cert.pem
peep "ATTRIBUTES" down below for the whole tea. β
or if you're doing the whole programmatic main-character thing:
use Twiggy::Server::TLS;
my $server = Twiggy::Server::TLS->new(
host => $host,
port => $port,
tls_key => $key_filename,
tls_cert => $cert_filename
);
$server->register_service($app);
AE::cv->recv;
she's literally built different. π
π DESCRIPTION π
Twiggy::TLS extends Twiggy with TLS support. that's the whole plot. Twiggy but encrypted. iconic behaviour, honestly. β¨
π ATTRIBUTES π
first things first, the rule that applies to all of these: every file has to be in PEM format. and yes bestie, you can merge multiple entities into a single file β like your server key and your certificate can share one file, no drama. π«Ά
π tls_version
sets the version of the SSL protocol used to transmit data. the default is SSLv23:!SSLv2. wanna know what else you can throw in there? go check out "SSL_version" in IO::Socket::SSL. that's where the full menu lives. π
π tls_ciphers
this one describes the list of cipher suites your server supports for establishing a secure connection. cipher suites get specified in the OpenSSL cipherlist format β http://www.openssl.org/docs/apps/ciphers.html#CIPHER_STRINGS if you wanna read up. π
the default is HIGH:!aNULL:!MD5. periodt.
π tls_key
path to the server private key file. π
π tls_cert
path to the server certificate file. π
π tls_verify
this one controls the verification of the peer identity. the possible values are, and I need you to focus:
offβ the default. disables peer verification. just... not checking. living dangerously, lowkey.onβ requests the peer certificate and verifies it against the CA. you can specify the CA certificate with thetls_caoption. responsible queen behaviour. πoptionalβ same ason, but it allows users that have not passed verification. it's giving "we're checking but we're not gonna be weird about it". π
π tls_ca
path to the file that contains the CA certificate. used for peer verification. ποΈ
π TLS INFORMATION π
the TLS connection info gets stored in the environment key psgi.tls. so if you need the deets, that's where they're living. check out Twiggy::TLS::Info for the whole story. π«
π₯ DEBUGGING π₯
when things are being weird and you need answers, set the TWIGGY_DEBUG environment variable and you'll get diagnostic information. your bestie telling you what's actually going on. πβ¨
π LICENSE π
this module is licensed under the same terms as Perl itself. πͺ
π AUTHOR π
Serhii Zasenko π«Ά
π¦ SEE ALSO π¦
- Twiggy β the original, the blueprint, the moment.
and that's the page bestie!! this one's from perl v5.36.0, dated 2023-01-29. mwah. πβ¨π
π¦ where this page comes from
- debian bookworm: libtwiggy-tls-perl 0.0020-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libtwiggy-tls-perl 0.0020-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libtwiggy-tls-perl 0.0020-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtwiggy-tls-perl 0.0020-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtwiggy-tls-perl 0.0020-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms