Using SSL with mIRC

Quick answer. Please use port 6660 for SSL. Need more help? See below.

As of mIRC v6.14, secure servers connections are now supported via SSL, using the OpenSSL libraries.

You will have to download the OpenSSL 0.9.7d (or newer) libraries separately from mIRC and place them in the mIRC folder for this to work. Due to the varying import/export restrictions of encryption across countries, the OpenSSL DLLs cannot be distributed with mIRC.

Which files do I need specifically?

You will need libeay32.dll and ssleay32.dll of OpenSSL 0.9.7d (or newer), and possibly msvcr70d.dll as well. They must be downloaded and placed in the mIRC folder, or in the Windows system folder.

The DLLs with which we tested SSL are a default compile of the OpenSSL 0.9.7c and 0.9.7d sources. If you have experience with SSL/OpenSSL and are able to compile your own DLLs, please do so. When the OpenSSL DLLs are compiled under Visual C++ .Net, they also need msvcr70d.dll to work, which does not come with Win9x. So be sure to download that as well if necessary.

If you have no idea how to compile files, you can use the Win32 OpenSSL installer available here. This installer provides a simple installation of OpenSSL. It will place the required DLLs in the Windows system folder.

After that, how does it work?

mIRC will load the DLLs automatically if it finds them. The variable $sslready can be used to determine whether mIRC has loaded the dlls successfully. To initiate a secure connection to an SSL capable server, you can use the /server -e switch, or prefix the port number with a plus sign, eg. +6660. The variable $ssl can be used to determine whether the current connection is secure or not. SSL settings can be found in the View/Options/Connect/Options dialog but these are visible only when the OpenSSL DLLs have been found and loaded.

How to connect to TVEps with SSL?

Connect to TVEps on port 6660. /server +6660 will do the trick.

When you are connecting you'll notice something like: *** You are connected to with TLSv1-AES256-SHA-256bits

And if you do a /whois on yourself you'll see something like:
Krejt is * Tjerk Vonck
Krejt is connecting from *
Krejt on #Lobby
Krejt using Root of ... of ... I don't know ;>=
Krejt is a Secure Connection
Krejt has been idle 4secs, signed on Wed Mar 03 16:42:15
Krejt End of /WHOIS list.

Why the need for secure connections?

mIRC is used by many organizations that need to communicate over secure connections, everything from corporate to governmental. Various educational organizations that provide online teaching also require communications to be secure for privacy purposes. Apart from that, many individuals around the world also depend on secure communications, whether for political, business, or other reasons. At the end of the day, it really depends on your own personal needs. If it's not something that you think you need, then you probably don't!

Credit: for most of this tutorial