[DAS] Retrieve DAS annotaion in Ensembl browser from a http s das sever?

Lincoln Stein lstein@cshl.org
Tue, 20 Aug 2002 10:57:35 -0400


Hi Stefano,

Sounds good.  Paul Gordon is doing the authentication part; you can do the SSL 
part.  The deal here is to use the Bio-Das2 module (which you can CVS co from 
biodas.org), and to make two changes:

	1) in the Bio::Das::Request::HTTP module, check the incoming URL for the 
	https: protocol, and if it's there change the default port to 443, and create
	an IO::Socket::SSL rather than an IO::Socket::INET.

	2) in the Bio::Das module, in the run_requests() subroutine, you'll need to
	check for and handle SSL_WANT_READ and SSL_WANT_WRITE errors, 
	which indicate that there's information in the SSL buffers that need to be
	handled before going back into the select() loop.  It's important to deal
	with this because Bio::Das uses nonblocking I/O.

Let me know how it comes along.

Lincoln

On Monday 19 August 2002 06:00 am, you wrote:
> I have done some mod_perl/SSL coding years ago,
> so I am willing to help if needed.
>
> Stefano
>
> > -----Original Message-----
> > From: Paul Gordon [mailto:gordonp@cbr.nrc.ca]
> > Sent: Saturday, August 17, 2002 3:19 PM
> > To: Lincoln Stein
> > Cc: yizhang; helpdesk@ensembl.org; ensembl-dev@ebi.ac.uk;
> > das@biodas.org
> > Subject: Re: [DAS] Retrieve DAS annotaion in Ensembl browser from a
> > https das sever?
> >
> > > There are two problems.  The first is that Bio::Das::HTTP
> >
> > can't speak the SSL
> >
> > > protocol and therefore can't talk to https: URLs, and the
> >
> > second is that
> >
> > > there isn't any passing of usernames and passwords.
> > >
> > > Both of these problems can be fixed relatively easily, but
> >
> > I've got my hands
> >
> > > full right now.  Are there any volunteers on the mailing
> >
> > list who would be
> >
> > > willing to give this a shot?  I will provide assistance.
> >
> > I'm rather in need of this feature too, so I'd be willing to try it...
>
> This message contains confidential and potentially legally privileged
> information solely for its intended recipients and others may not
> distribute, copy or use it. If you have received this communication in
> error, please tell us by return email and delete it, and any copies of it.

-- 
========================================================================
Lincoln D. Stein                           Cold Spring Harbor Laboratory
lstein@cshl.org			                  Cold Spring Harbor, NY
========================================================================