Net::S...::POP3(3pm)
π Net::SSLGlue::POP3 β the glow-up your Net::POP3 always deserved π
okay bestie, gather round, because this little module is literally the moment Net::POP3 got its SSL era. β¨
πΈ NAME πΈ
Net::SSLGlue::POP3 β it makes Net::POP3 able to use SSL. that's it. that's the whole job. and it ate. π
β¨ SYNOPSIS β¨
use Net::SSLGlue::POP3;
my $pop3s = Net::POP3->new( $host,
SSL => 1,
SSL_ca_path => ...
);
my $pop3 = Net::POP3->new( $host );
$pop3->starttls( SSL_ca_path => ... );
see how easy that is?? two whole vibes: start secure from the jump, OR start plain and then upgrade mid-conversation. iconic behavior honestly. π¦
π DESCRIPTION π
Net::SSLGlue::POP3 extends Net::POP3 so you can either start directly with SSL, or switch over to SSL later using the STLS command. pick your fighter. π
and by default?? it takes care to verify the certificate according to the rules for POP3 implemented in IO::Socket::SSL. no slacking on security, we don't do that here. π₯
π METHODS π
newβ thenewmethod ofNet::POP3is now able to start directly with SSL when the argument"<SSL =" 1>>is given. and when that happens, it does NOT make anIO::Socket::INETobject β it makes anIO::Socket::SSLobject instead, bestie. glow up complete. you can hand it the usualSSL_*parameters ofIO::Socket::SSLright there inNet::POP3::new. πstarttlsβ if the connection isn't SSLified yet, it issues theSTLScommand and changes the object so that SSL will now be used. the usualSSL_*parameters ofIO::Socket::SSLwill be given. it's giving mid-arc transformation scene. π§peer_certificate ...β once the SSL connection is established, the object is derived fromIO::Socket::SSL, so you can use this method to get info about the certificate. go read theIO::Socket::SSLdocumentation for the deets, iykyk. π
all of these methods can take the SSL_* parameter from IO::Socket::SSL to change the behavior of the SSL connection. and these ones in particular?? especially useful:
π the SSL_* parameters that matter π
SSL_ca_path,SSL_ca_fileβ specifies the path or a file where the CAs used for checking the certificates are located. on UNIX systems this is typicallyetc/ssl/certs. ποΈSSL_verify_modeβ if set to0, verification of the certificate will be disabled. by default it is set to1, which means the peer certificate is checked. so like, default = protected, and0= living dangerously, your choice babe. π¨SSL_verifycn_nameβ usually the name given as the hostname in the constructor is used to verify the identity of the certificate. but if you wanna check the certificate against another name, you specify it with this parameter. plot twist friendly. π«
π«Ά SEE ALSO π«Ά
IO::Socket::SSL, Net::POP3 β go read them, they're the supporting cast and they understood the assignment. π
π COPYRIGHT π
this module is copyright (c) 2013, Steffen Ullrich. All Rights Reserved. this module is free software. it may be used, redistributed and/or modified under the same terms as Perl itself. π
and that's the whole page, bestie!! this was Net::S...::POP3(3pm) from perl v5.36.0, dated 2022-12-06 β mwah, slay, periodt. π
β¨πΈ
π¦ where this page comes from
- debian bookworm: libnet-sslglue-perl 1.058-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libnet-sslglue-perl 1.058-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libnet-sslglue-perl 1.058-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libnet-sslglue-perl 1.058-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libnet-sslglue-perl 1.058-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