mIRC Home    About    Download    Register    News    Help

Print Thread
#251266 13/02/15 04:44 PM
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Hello,

I was trying to connect to an SSL (443 port) website but return an error message on sockopen event i cannot understand why this is happening i have also try to open the site via (/sockopen -e test buildfeed.net 443) and after /socklist did not append anything, i am not using any firewall or antivirus, also mirc using mirc's ssl package.

mIRC 7.39 beta6 (also i have try this on 7.38 too same problem)

ERROR: SOCKOPEN 3 -> 10101 -> [10101] Host disconnected
3 = $sockerr
10101 = $sock($sockname).wserr
[10101] Host disconnected = $sock($sockname).wsmsg

- Thanks!


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
I was also unable to establish a connection to this server, I checked its available ciphers and there does not seem to be an incompatibility with mIRC's offering.

Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
I have try this from browser (using an Live HTTP headers reader) and succeed why not from mirc?


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Dec 2002
Posts: 5,420
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,420
If you could please provide a short, example script that reproduces this issue for you, I will test it out here.

Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
Code:
on *:sockopen:test:{
echo -a $sockerr -- $sock(test).wsmsg
}
/sockopen -e test buildfeed.net 443


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Dec 2002
Posts: 5,420
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,420
Thanks, I was able to reproduce the issue. It looks like the website is using SNI (Server Name Identification) which requires the SSL client to use an API that specifies the server named address before connecting to the server, which mIRC does not support. I have added support for this in the next version. That said, I am not sure if there are any side-effects to setting this option. In testing, with this feature enabled, I have not yet experienced any issues when connecting to SSL servers, so it seems fine but we will need to see how it works out with greater use.

Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Thats very good!! thanks a lot Khaled for addition, i will test it in a lot of SSL websites to see if any problem will be occurred. +1


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-

Link Copied to Clipboard