[Net-IMAP-Server] Net::IMAP::Server - paths to SSL certificate and key

Dan Keder keder at fi.muni.cz
Fri Oct 2 09:28:21 EDT 2009


OK, I managed to get the custom certificate paths working with both SSL 
and TLS connections. I'm attaching the patches. The are made against the 
current (vanilla) version of modules.

dan

On 01.10.2009 18:58, Alex Vandiver wrote:
> On Thu, 2009-10-01 at 18:17 +0200, Dan Keder wrote:
>> I modified the module Net::IMAP::Server so that I can specify paths to
>> the SSL certificate and key files. The patch that does it is in the
>> attachments.
>>
>> However it requires another change in Net::Server::Coro which I already
>> sent to its respective mailing list (and which I am attaching to this
>> mail as well).
>
> Thanks!  This looks like a useful feature.  However, it looks only to
> work with TCP connections which later get TLS enabled, but not with
> straight-up SSL connections.  That is, the following fails for me:
>
> $ perl -Ilib -MNet::IMAP::Server -e 'Net::IMAP::Server->new(
>    server_cert =>  "moose/server-cert.pem",
>    server_key =>  "moose/server-key.pem",
>    ssl_port =>  9930
> )->run'&
> 2009/10/01-12:52:58 Net::IMAP::Server (type Net::Server::Coro) starting!
> pid(4318)
> Binding to TCP port 1430 on host *
> Binding to SSL port 9930 on host *
> Group Not Defined.  Defaulting to EGID '1000 1005 1004 1000 443 250 100
> 85 35 27 19 18 16 11 10'
> User Not Defined.  Defaulting to EUID '1000'
> SSL accept error: 1, error:00000001:lib(0):func(0):reason(1)
>
> $ openssl s_client -connect localhost:9930 -crlf
> CONNECTED(00000003)
> 4278:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert
> handshake failure:s23_clnt.c:596:
>
> I'd love to take these patches if you can fix this problem.
> Tangentially, where's the "respective mailing list" for
> Net::Server::Coro?  I don't know of one -- which is surprising, because
> I'm the maintainer. :)
>   - Alex

-- 
   Free your mind...the rest will follow.
--------------------------------------------------------
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Net-IMAP_sslcert-path.diff
Url: http://lists.bestpractical.com/pipermail/net-imap-server/attachments/20091002/0ac7d4d4/attachment-0002.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Net-Server-Coro_sslcert-path.diff
Url: http://lists.bestpractical.com/pipermail/net-imap-server/attachments/20091002/0ac7d4d4/attachment-0003.txt 


More information about the Net-IMAP-Server mailing list