Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

How to use Perl SSL object in RPM Linux

by parpande (Initiate)
on Oct 09, 2018 at 04:38 UTC ( #1223706=perlquestion: print w/replies, xml ) Need Help??

parpande has asked for the wisdom of the Perl Monks concerning the following question:

I am new to Perl , I have an rpm package that is when installed establishes and checks for SSL connections with different algorithm .


I want to use add the above list to the arguments passed to the instantiation of the IO:Socket:SSL object by the rpm . How do I use SSL object in the bin file for the rpm so that while installation of the rpm it checks for the list above of SSL cipherlist. If I would keep the above list in a config file of the rpm then how do I mention that list to refer for SSL in bin files of SSL object :

use IO::Socket::SSL qw(debug3); my $socket = IO::Socket::SSL->new ( PeerAddr => '', PeerPort => 443, Proto => 'tcp', SSL_use_cert => 1, SSL_verify_mode => SSL_VERIFY_NONE, SSL_cert_file => 'server.pem' ) or die "failed connect or ssl handshake: $!,",&IO::Socket::SSL::errs +tr,"\n";

  • Comment on How to use Perl SSL object in RPM Linux

Replies are listed 'Best First'.
Re: How to use Perl SSL object in RPM Linux
by hippo (Chancellor) on Oct 09, 2018 at 08:08 UTC

    As specified in the documentation for IO::Socket::SSL:

    my $socket = IO::Socket::SSL->new ( PeerAddr => '', PeerPort => 443, SSL_cipher_list => 'ECDH+AES128:ECDH+AESGCM:ECDH+AES256:DH+AES:DH+AE +SGCM:DH+AES256:RSA+AES:RSA+AESGCM:!aNULL:!RC4:!MD5:!DSS:!3DES:!SSLv3' +, # ... more options here );

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1223706]
Front-paged by Corion
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2019-10-23 23:01 GMT
Find Nodes?
    Voting Booth?