We have a legacy Perl application on Windows 12 server, using SMTP to send emails. We now have a requirement to use TLS in order to encrypt the channel.
What modules are required to do this and what changes are needed to be made to the script?
We are also having issues installing the TLS related modules for this version of Perl.
Also what is the link to download zip files for these modules. I can try manula installation if it is available.
Perl does SSL support in core modules in all Perls after 5.8. While this means you get SSL support out of the box, you also cannot alter the level of SSL support that is provided. 5.12 comes with a very old version of OpenSSL from prior to the Heartbleed/Beast/POODLE family of vulnerabilities were known. There is no support for TLS 1.2 with modern secure encryption protocols in Perls that old, and it canāt be added without rebuilding them from source.
Since those versions are āas-isā and canāt be updated, if you need modern TLS you must move to a version of Perl that can support an OpenSSL that provides support for TLS 1.2.
1 Like
We are using ActivePerl 5.24.1 version in my application.
We are connecting to MySQL 5.7 version with Perl script. TCP protocol is using for data communication with Perl script and MySQL data base.
Now, we have a requirement to use TLS in order to encrypt the data or query between channel.
Please help me which package do i need to install or enable any setting for using TLS protocol ?
Here is code we are using for mySQL DB connection
for example-
$dsn = āDBI:mysql:database=mysql;port=$mysqlport;host=$SERVERNAMEā;
$dbh = DBI->connect($dsn, $user, $pass, {āRaiseErrorā => 1});
Thank you.
Ajit Yadav