From: <mj...@te...> - 2003-01-15 13:32:04
|
My major problem is the timeout. If the server does not have SSL it=0D=0A= will block forever. I've thought to use the alarm function but this=0D=0A= script will also run on Windows which does not have support for alarm.=0D= =0AAnyway I'll try the OpenSSL list.=0D=0A=0D=0AThanks,=0D=0AMarlon=0D=0A= =0D=0A---------- Cabe=E7alho inicial -----------=0D=0A=0D=0ADe: pyopenss= l-l...@li...=0D=0APara: pyo...@li...urce= forge.net=0D=0AC=F3pia: =0D=0AData: 15 Jan 2003 11:27:27 +0100=0D=0AAssun= to: Re: [pyOpenSSL] How to detect if a port has SSL running?=0D=0A=0D=0A>= tis 2003-01-14 klockan 14.14 skrev Marlon Jabbur:=0D=0A> > Hi list,=0D=0A= > > I've been using pyOpenSSL for a while and I have a problem that I=0D=0A= could =0D=0A> > not solve and maybe someone can help me. =0D=0A> > My pro= blem is how do I detect if a arbitrary port is running or=0D=0Anot SSL?=0D= =0A> > When I establish a connection with a non-ssl server and I try to s= end=0D=0A> > some data it hangs forever, I'm guessing that the problem i= s that=0D=0Athe =0D=0A> > SSL handshake never completes, but how can I ca= tch this error in a=0D=0A> > script?=0D=0A> =0D=0A> I think it depends on= the SSL version, and I think it is better to ask=0D=0A> this question on= the openssl-users mailing list.=0D=0A> =0D=0A> I'm not sure you would *w= ant* to be able to detect it (other than timing=0D=0A> out) since it invi= tes solutions on the form "Try SSL and if that fails,=0D=0A> revert to no= n-encrypted communication" which in turn invites downgrade=0D=0A> attacks= from a malicious party. I think. :)=0D=0A> =0D=0A> =0D=0A> /Martin=0D=0A= > =0D=0A> |