• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2018
  • Last Modified:

PERL and SSL

Is there any special setup with perl for SSL.

If I want to use LWP to call https sites do i need to install special perl ssl libraries?
is it difficult to do with activestate?  any links for how to do it.

thanks,
0
munzer
Asked:
munzer
  • 8
  • 7
1 Solution
 
TintinCommented:
0
 
munzerAuthor Commented:
Tintin:

that sounds like a 5 minute install. I was told it is pretty complex to do from source code. what do you think? I was told wrong.
0
 
TintinCommented:
Yes, if you do the install from source code it is quite complex, but why would you (and most other people) want to make it harder than it needs to be :-)

0
Protect Your Employees from Wi-Fi Threats

As Wi-Fi growth and popularity continues to climb, not everyone understands the risks that come with connecting to public Wi-Fi or even offering Wi-Fi to employees, visitors and guests. Download the resource kit to make sure your safe wherever business takes you!

 
munzerAuthor Commented:
can you elaborate: there are two ways to install perl? is there an advantage of one over the other.
0
 
TintinCommented:
The two ways to install Perl are:

1.  Install a binary package.
2.  Download and compile the Perl source.

Unless you have a very specific reason to compile the source, most people just install the appropriate binary package for their operating system.

I made the assumption your Perl version was running on Windows.  If that's not the case, then the link I gave you isn't appropriate.

If it is a Linux server, then there's more than likely a Linux Perl/SSL package available.

So before going any further, I need to know what operating system the server is running.
0
 
munzerAuthor Commented:
We are developing  this on windows server.

but eventually the production server will be Sun Solaris.
0
 
TintinCommented:
My recommendation if you are developing on Windows and deploying to Solaris is to use ActivePerl on both platforms, that way you at least have consistency of Perl versions.

0
 
munzerAuthor Commented:
yes I think we are using activestate. I think it is supported on both platforms? correct

Do you mean that sun has its own version of perl too?

Is there different instructions for setup of SSL on sun solaris using active state?
0
 
TintinCommented:
ActiveState is the company, ActivePerl is their Perl distribution.

ActivePerl is available for Windows, Mac, Linux, AIX, Solaris and HP/UX.

Solaris >=9 comes standard with it's own version of Perl.  Generally, most people install a separate version so that they have a later version and can install modules without having to r about affecting any system functions that rely on the default Solaris Perl version.

A very useful page to bookmark is:

http://ppm.activestate.com/BuildStatus/5.8-A.html

This contains a very handy summary of all the ActivePerl modules built by ActiveState for all the platforms.

Having a look in that list for Crypt::SSLeay, it has a status of "FAIL" for all platforms, however, looking at the details of the Solaris build, it appears to be OK.

You could give it a go and see if it works, otherwise you'll need to build your own version of Crypt::SSLeay.  You'll need gcc, openssl and a few other tools to do this.
0
 
munzerAuthor Commented:
Do you mean that previous link for installing Crypt:SSLeay on windwos will not work because Activestate module failed?

Does this also mean i can't use it for Sun solaris?

How difficult it is to build my own version of Crypt:SSleay? Are we talking a long perl progeam that will take days/weeks to build?

0
 
TintinCommented:
The link I gave you for Crypt::SSLeay on Windows will work as it uses a different repository to ActiveState (never really understood why ActiveState still don't have a working version).

As Crypt::SSLeay is not pure Perl, you need to have a platform specific version for each OS.

Building it is not overly difficult.  On the Solaris box, you just need to ensure you have gcc and openssl installed.  You can grab the Solaris packages from http://sunfreeware.com/

Once you have those installed, it should be a matter of doing

/usr/local/bin/perl -MCPAN -e 'install Crypt::SSLeay'
0
 
munzerAuthor Commented:
I found out that we are using the native perl version on solaris 10.

1.  Does the above still apply? grab the solaris package and then installing Crypt:SSLeay. It does not seem any coding is required based on that.

2. Do you usually encounter problems when you work in this environment? building a program in activeperl and then migrating it to solaris native perl.

Thank you
0
 
TintinCommented:
I would highly recommend not using the Sun supplied version of Perl if you are adding modules for the reasons I previously mentioned.

1.  Yes.  Just remember that when you want to use the non-Sun supplied version of Perl, you need to specify /usr/local/bin/perl instead of /usr/bin/perl.

2.  I don't do a whole lot of development where I code Perl on Windows platform then migrate to Unix.  However, I quite often do the opposite where I develop on Linux/Unix and test on Windows.
0
 
munzerAuthor Commented:
<Building it is not overly difficult.  On the Solaris box, you just need to ensure you have gcc and openssl installed.  You can grab the Solaris packages from http://sunfreeware.com/
Once you have those installed, it should be a matter of doing
/usr/local/bin/perl -MCPAN -e 'install Crypt::SSLeay'>

What is gcc and openssl?
this also seems pretty easy to do and does not requiret any coding?correct.
0
 
TintinCommented:
gcc - the GNU C compiler.
openssl - is the open source SSL libraries that Crypt::SSLeay relies on.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

On-Demand: Securing Your Wi-Fi for Summer Travel

Traveling this summer?Check out our on-demand webinar to learn about the importance of Wi-Fi security and 3 easy measures you can start taking immediately to protect your private data while using public Wi-Fi. Follow us today to learn more!

  • 8
  • 7
Tackle projects and never again get stuck behind a technical roadblock.
Join Now