Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Win32 SSL?

by eduardo (Curate)
on Nov 25, 2002 at 15:51 UTC ( #215653=perlquestion: print w/replies, xml ) Need Help??

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


I am in the process of attempting to write a small perl application to do SSL tunneling with sprinkles (this means that I will be doing packet introspection and modifying things *before* they are SSL'd). I have succeeded with almost no effort in getting my solution to work on a Linux box thanks to the lovely IO::Socket::SSL. However, due to the nature of having "clients", I have to get the program to work in a Windows environment. As a small aside before I get to the "main question", I am using Perl2Exe right now, though I will be evaluating PerlApp just to see the pro's and con's (I have no choice, this has to be a stand alone executable, the clients are guaranteed *not* to even have heard of Perl.)

So... here is the main question :) Knowing darned well that MS has provided SSL libraries in it's Operating System (after all, IE uses them to do https), I was wondering if any more Win saavy perl monks knew how to take advantage of these libraries and "get" an SSL stream in Windows without having to resort to bundling the OpenSSL library in my end product?

Any pointers would be appreciated!

Replies are listed 'Best First'.
Re: Win32 SSL?
by Thelonius (Priest) on Nov 25, 2002 at 18:05 UTC
    I don't know of a Perl module for this. I do, however, know of someone who put an OpenSSL-style C wrapper around some of the Windows CryptoAPI. See Openssl/Microsoft Crypto API Interface.

    If you are industrious, you could use that code to work up a replacement for SSLeay.xs in the Net::SSLeay module. It's quite likely that you don't need all the functions that are defined in SSLeay.xs. If you can figure out the mininum set, it might not be too much work. If you do it, post something pack on PM to let us know. I would be interested in that.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2021-03-05 14:35 GMT
Find Nodes?
    Voting Booth?
    My favorite kind of desktop background is:

    Results (112 votes). Check out past polls.