Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

News::Scan and SSL

by scain (Curate)
on Feb 13, 2005 at 20:55 UTC ( [id://430631]=perlquestion: print w/replies, xml ) Need Help??

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


I am working on a project to collect statistics from private news groups that are running inside my company. Theoretcially, News::Scan should work great, but the server requires that clients use SSL. I know nothing about using SSL sockets, but I'm wondering if it would be possible to create a SSL socket and then have News::Scan talk to the news server through that. If you think it should be possilble, can you point me to good, simple documentation on suing SSLeasy that might make this task a little easier?

Thanks much,

Project coordinator of the Generic Model Organism Database Project

Replies are listed 'Best First'.
Re: News::Scan and SSL
by redhotpenguin (Deacon) on Feb 13, 2005 at 21:30 UTC
    Looking at the source of News::Scan, Net::NNTP is used to make a connection to the NNTP server with the following command:

    $client = Net::NNTP->new(@args);

    Net::NNTP uses IO::Socket under the hood, so you may be able to create Net::NNTP::SSL which would use IO::Socket::SSL instead to make the connection over SSL. IO::Socket::SSL is described as 'Nearly transparent SSL encapsulation for IO::Socket::INET', so I would think that this approach may be the cleanest for a perl based solution.

    Update: Adjusted comment after realizing the poster already stated that the server requires ssl.

Re: News::Scan and SSL
by Animator (Hermit) on Feb 13, 2005 at 21:20 UTC
    Not really a perl solution, but you could set up a tunnel, which handles the SSL-part ( for example).

    And then you can connect to the tunnel, which will then forward all traffic to the correct server/port after encrypting everything...

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://430631]
Approved by friedo
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-21 11:48 GMT
Find Nodes?
    Voting Booth?

    No recent polls found