We help IT Professionals succeed at work.

PERL and SSL

2,075 Views
Last Modified: 2012-06-21
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,
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2007
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

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.
CERTIFIED EXPERT
Top Expert 2007

Commented:
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 :-)

Author

Commented:
can you elaborate: there are two ways to install perl? is there an advantage of one over the other.
CERTIFIED EXPERT
Top Expert 2007

Commented:
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.

Author

Commented:
We are developing  this on windows server.

but eventually the production server will be Sun Solaris.
CERTIFIED EXPERT
Top Expert 2007

Commented:
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.

Author

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?
CERTIFIED EXPERT
Top Expert 2007

Commented:
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.

Author

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?

CERTIFIED EXPERT
Top Expert 2007

Commented:
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'

Author

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
CERTIFIED EXPERT
Top Expert 2007

Commented:
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.

Author

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.
CERTIFIED EXPERT
Top Expert 2007

Commented:
gcc - the GNU C compiler.
openssl - is the open source SSL libraries that Crypt::SSLeay relies on.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.