Munin:...n::TLS(3pm)
π NAME π
Munin::Node::TLS β the abstract base class that implements the STARTTLS protocol β¨ it's giving "parent class energy", the blueprint that the actual TLS server/client classes are built from π«Ά
πΈ SYNOPSIS πΈ
okay so bestie, do NOT call this one directly π like, this is not the class you're looking for. Go peek at the synopsis for Munin::Common::TLSServer and Munin::Common::TLSClient instead, those are the ones with the actual main character energy π
β¨ METHODS β¨
π new
my $tls = Munin::Common::TLSFoo->new({ # Substitute Foo with Client or Server
# Mandatory attributes:
logger => \&a_logger_func,
read_fd => fileno($socket),
read_func => \&a_socket_read_func,
write_fd => fileno($socket),
write_func => \&a_socket_read_func,
# Optional attributes DEFAULTS
DEBUG => 0, # 0
tls_ca_cert => "path/to/ca/cert.pem", # ''
tls_cert => "path/to/cert.pem", # ''
tls_paranoia => 1, # 0
tls_priv => "path/to/priv_key.pem", # ''
tls_vdepth => 5, # 0
tls_verify => 1, # 0
});
The constructor π but again β not something you should ever call yourself, babe. This is here to document the attributes that Munin::Common::TLSServer and Munin::Common::TLSClient have in common. That's it, that's the whole point of this section π
fr fr though: constructor. should not be called directly. we said what we said π
π¦ read
my $msg = $tls->read();
Encrypted read β¨ you get your message back, all decrypted and cozy πΈ
π write
$tls->write($msg);
Encrypted write π you hand it a message, it does the encryption thing, iconic behaviour π
β session_started
my $bool = $tls->session_started();
Returns true if the TLS object is ready to read/write encrypted data π₯ like a vibe check but for TLS: is the session up? Are we ready? Slay π
π A LIL SIGN-OFF π
that's the whole page bestie, no cap π«Ά this was perl v5.42.3, dated 2026-09-30, and it lives in the Munin:...n::TLS(3pm) page of the User Contributed Perl Documentation π go forth and encrypt responsibly π§β¨
π¦ where this page comes from
- fedora 43: munin-node 2.0.78-1.fc43 Β· GPL-2.0-only
- fedora 44: munin-node 2.0.78-1.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms