Twiggy...S::Info(3pm)
π Twiggy::TLS::Info π
okay bestie, so this is Twiggy::TLS::Info β a little User Contributed Perl Documentation moment β and it's giving TLS connection information. that's it, that's the whole vibe. she's here to tell you everything about the TLS handshake that just happened on your connection β¨
πΈ NAME πΈ
Twiggy::TLS::Info β literally just TLS connection information, no cap π
π¦ SYNOPSIS π¦
so like, inside a PSGI application, you'd do this:
warn "Client's CommonName: " . $env->{"psgi.tls"}->client_certificate('cn');
warn "Used cipher: " . $env->{"psgi.tls"}->cipher;
see how she's reaching into $env->{"psgi.tls"}?? that's the girl. she holds all the tea about the TLS connection π
π METHODS π
π client_certificate
pulls a value out of the client certificate, bestie. if you don't pass a field, you get back the internal representation of the certificate from Net::SSLeay β the whole thing, raw, unfiltered.
and if you do wanna know which fields you can ask for?? the full list lives in the IO::Socket::SSL peer_certificate method documentation. go read her, she ate πβ¨
π§ cipher
returns the string form of the cipher that's being used for the current connection. that's it. that's the method. iconic behaviour, honestly π
π«Ά quick reminder babes: no extra lore here, these are the only two methods, so don't go looking for more, iykyk
perl v5.36.0 Β· 2023-01-29 β mwah π that's the version and the date, straight from the source, and that's a wrap on this page. go slay your TLS debugging, bestie πβ¨π
π¦ 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