User Tools

Site Tools


cryptlib

Enabling SSH/SSL Servers

Mystic BBS uses Cryptlib in order to perform the encryption for SSH and SSL-based servers and clients. This library will be automatically detected on server startup, or whenever an outbound SSH menu action is executed from the BBS itself.

The following sections outline how to install Cryptlib for each particular operating system.

Downloading Cryptlib

Download the latest version of Cryptlib from the following link below. The current version is 3.4.3. It is important that the version included here in the instructions (the latest official version) is the version used with Mystic, if you try to use a different version you may run into security vulnerabilities or any number of other issues.

Website: https://www.cs.auckland.ac.nz/~pgut001/cryptlib/

Direct FTP Download: ftp://ftp.franken.de/pub/crypt/cryptlib/cl343.zip

Windows

In Windows, Mystic looks for the file “cl32.dll” or “cl64.dll” depending on if the 32-bit or 64-bit version of Mystic is being used.

Luckily the archive downloaded in the above section already has these files compiled and ready to go within the archive. To install Cryptlib then is to simply copy the appropriate file into your root Mystic BBS directory or somewhere in the library path so that Mystic can detect it.

In addition to the .DLL file, Cryptlib has a dependency on the Visual C++ runtime which may or may not need to be installed on your particular system. If you have the appropriate .DLL file in the root Mystic BBS directory but you still get a message on server startup that says Cryptlib is not installed, then you likely need to install this runtime:

https://www.microsoft.com/en-us/download/details.aspx?id=48145

Linux

In Linux, Mystic looks for Cryptlib in the “libcl.so” file, which must be created by compiling the source code.

The source is contained in the above download section. Once the file has been downloaded, it must be extracted into its own directory on the Linux machine. The archive has source files that are stored in the Windows format, so it must be extracted and converted to Linux format. This can be done by using the “-a” option of unzip. If this step is skipped, the source code will not properly compile.

The following steps can be executed to compile and install Cryptlib:

  • Download the source code .zip into its own directory (lets say /cryptlib and cl343.zip for this example)
  • Switch to the /cryptlib directory where the cl343.zip is located
  • Type “unzip -a cl343.zip” to extract the source code ZIP into the /cryptlib directory
  • Type “sudo make shared”
  • Type “ls libcl*.so*” to see the name of the generated library. For example: libcl.so.3.4.3
  • Move the library into the library path and rename it so that Mystic will find it. Execute the following:
  • “sudo mv libcl.so.3.4.3 /usr/lib/libcl.so”

You can now delete the /cryptlib directory if you wish. The library is installed and read to be used by Mystic!

Macintosh OS X

In OS X, Mystic looks for Cryptlib in the “libcl.dylib” file, which must be created by compiling the source code.

The source is contained in the above download section. Once the file has been downloaded, it must be extracted into its own directory on the OS X machine. The archive has source files that are stored in the Windows format, so it must be extracted and converted to Unix format. This can be done by using the “-a” option of unzip. If this step is skipped, the source code will not properly compile.

The following steps can be executed to compile and install Cryptlib:

  • Download the source code .zip into its own directory (lets say /cryptlib and cl343.zip for this example)
  • Switch to the /cryptlib directory where the cl343.zip is located
  • Type “unzip -a cl343.zip” to extract the source code ZIP into the /cryptlib directory
  • Type “sudo make shared”
  • Type “ls libcl*.dylib*” to see the name of the generated library. For example: libcl.3.4.3.dylib
  • Move the library into the library path and rename it so that Mystic will find it. Execute the following:
  • “sudo mv libcl.3.4.3.dylib /usr/lib/libcl.dylib”

You can now delete the /cryptlib directory if you wish. The library is installed and read to be used by Mystic!

cryptlib.txt · Last modified: 2016/07/17 23:24 by g00r00