From: Martin <md...@md...> - 2003-01-15 10:27:52
|
tis 2003-01-14 klockan 14.14 skrev Marlon Jabbur: > Hi list, > I've been using pyOpenSSL for a while and I have a problem that I could=20 > not solve and maybe someone can help me.=20 > My problem is how do I detect if a arbitrary port is running or not SSL? > When I establish a connection with a non-ssl server and I try to send > some data it hangs forever, I'm guessing that the problem is that the=20 > SSL handshake never completes, but how can I catch this error in a > script? I think it depends on the SSL version, and I think it is better to ask this question on the openssl-users mailing list. I'm not sure you would *want* to be able to detect it (other than timing out) since it invites solutions on the form "Try SSL and if that fails, revert to non-encrypted communication" which in turn invites downgrade attacks from a malicious party. I think. :) /Martin |