Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

perl ssl

Posted on 2010-11-12
4
Medium Priority
?
417 Views
Last Modified: 2012-05-10
Hi ,

I have a http site .

Many of my linux daemon using the perl.

I have all the ssl packages .I need a way to use ssl using perl.

Thanks
0
Comment
Question by:magento
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 16

Expert Comment

by:Justin Mathews
ID: 34120619
You can use LWP Perl module to do all http and https transfers. See example below. Check LWP documentation for details at:

http://search.cpan.org/~gaas/libwww-perl-5.837/lib/LWP.pm




use LWP;
my $browser = LWP::UserAgent->new;

my $response = $browser->get("https://www.yoururl.com/");

die "$url error: ", $response->status_line
   unless $response->is_success;

print $response->content;

Open in new window

0
 
LVL 5

Author Comment

by:magento
ID: 34134830
jmatix,

I understand ,but when i am trying to use https ,i am getting error like (no ssl found in the IO ) please advice.
0
 
LVL 16

Accepted Solution

by:
Justin Mathews earned 2000 total points
ID: 34137868
SSL connection requires Perl module IO::Socket::SSL. Install that module from CPAN.

http://search.cpan.org/~sullr/IO-Socket-SSL/SSL.pm

0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
Imagine a situation that you have installed SSL (http://en.wikipedia.org/wiki/Secure_Sockets_Layer) Certificate on your Cisco ASA (Cisco Adaptive Security Appliance) firewall. Installation of SSL certificate on ASA is an another topic for which you …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question