cryptlib
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
cryptlib [2018/12/25 14:41] – [Downloading Cryptlib] avon | cryptlib [2023/01/24 11:05] (current) – g00r00 | ||
---|---|---|---|
Line 3: | Line 3: | ||
Mystic BBS uses Cryptlib in order to perform the encryption for SSH and SSL-based servers and clients. | Mystic BBS uses Cryptlib in order to perform the encryption for SSH and SSL-based servers and clients. | ||
- | The following sections outline how to install Cryptlib for each particular operating system. | + | The following sections outline how to install Cryptlib for each particular operating system. Find your operating system in the headings below and follow the instructions (if any) to install Cryptlib. |
+ | |||
+ | Once Cryptlib is installed, most servers will have an SSL setting inside the System Configuration > Servers > Configure Servers editor. | ||
==== Downloading Cryptlib ==== | ==== Downloading Cryptlib ==== | ||
- | Download the latest | + | If you are running an OS/version |
- | number of other issues. | + | |
- | Website: https://www.cs.auckland.ac.nz/ | + | There have been some reported mixed experiences lately interchanging different versions with different operating systems and Mystic. For 64-bit Unix-based systems like Ubuntu the latest 3.4.5 release seems to be working well as reported by users. |
- | ==== Windows | + | The latest stable version is 3.4.5 at the time of this writing and has been tested in Linux (64-bit) and ships with Windows |
- | In Windows, Mystic looks for the file " | + | Download |
- | 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. | + | Website: https://www.cs.auckland.ac.nz/ |
- | In addition to the .DLL file, Cryptlib | + | Mirror of 3.4.3.1: http:// |
+ | |||
+ | Mirror of 3.4.4.1: http:// | ||
+ | |||
+ | Mirror of 3.4.5.0: http:// | ||
+ | |||
+ | ==== Windows ==== | ||
+ | |||
+ | In Windows, Mystic looks for the file " | ||
+ | |||
+ | In addition to the .DLL file, Cryptlib | ||
https:// | https:// | ||
Line 24: | Line 35: | ||
==== Linux ==== | ==== Linux ==== | ||
- | In Linux, Mystic looks for Cryptlib in the " | + | In Linux, Mystic looks for Cryptlib in the " |
- | For many installs of Linux the compiler setup is not included by default, check by typing in a terminal: | + | === Installing GCC === |
- | whereis gcc | + | |
- | You should see several locations (like) | + | For many installs of Linux the compiler setup is not included by default, check by typing in a terminal: |
- | gcc: / | + | gcc -v |
+ | |||
+ | If GCC is installed you should see a bunch of stuff printed to the screen, including a version number such as | ||
+ | "gcc version 11.3.0 (Ubuntu 11.3.0-1ubuntu1~22.04)" | ||
- | If you get no locations | + | If you get no output from gcc then you need to install it. Using a terminal do: |
sudo apt-get update | sudo apt-get update | ||
- | sudo apt-get install build-essential | + | sudo apt-get install build-essential |
- | Then check again with ' | + | === Compiling CryptLib v3.4.5 Notes === |
- | The source is contained in the above download section. | + | CryptLib 3.4.5 requires GCC version 9.x or less because of changes to the Makefile system |
- | The following steps can be executed to compile and install Cryptlib: | + | === Compiling for Linux using GCC 9.x and lower === |
+ | |||
+ | The source is contained in the above download section. | ||
+ | |||
+ | The following steps can be executed to compile and install Cryptlib | ||
- | * Download the source code .zip into its own directory (lets say /cryptlib and cl3431.zip for this example) | + | * Download the source code .zip into its own directory (lets say /cryptlib and cl345.zip for this example) |
- | * Switch to the /cryptlib directory where the cl3431.zip is located | + | * Switch to the /cryptlib directory where the cl345.zip is located |
- | * Type "unzip -a cl3431.zip" to extract the source code ZIP into the /cryptlib directory | + | * Type "unzip -a cl345.zip" to extract the source code ZIP into the /cryptlib directory |
* Type "sudo make shared" | * Type "sudo make shared" | ||
- | * Type "ls libcl*.so*" | + | * Type "ls libcl*.so*" |
* Move the library into the library path and rename it so that Mystic will find it. Execute the following: | * 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 / | + | * "sudo mv libcl.so.3.4.5 / |
You can now delete the /cryptlib directory if you wish. The library is installed and read to be used by Mystic! | You can now delete the /cryptlib directory if you wish. The library is installed and read to be used by Mystic! | ||
- | ==== Macintosh OS X ===== | + | === Compiling for Linux using GCC 10.x and higher |
+ | |||
+ | Newer Linux distributions are now shipping with GCC 11 which has depreciated some functions used in the Makefile for Cryptlib 3.4.5 causing the compile to fail. To work around this, either the source code needs to be updated, or a copy of GCC 9 must be installed in order to compile Cryptlib. | ||
+ | |||
+ | These steps outline the instructions for compiling by installing an older gcc rather than making any changes to the actual source code. Thanks to Alisha Stutz of swissIRC BBS for the steps below used to compile Cryptlib 3.4.5 on Ubuntu 22.04 LTS: | ||
+ | |||
+ | sudo apt-get update | ||
+ | sudo apt-get install build-essential | ||
+ | sudo apt-get install gcc-9 g++-9 | ||
+ | sudo apt-get install zip unzip | ||
+ | sudo update-alternatives --install / | ||
+ | sudo update-alternatives --install / | ||
+ | wget http:// | ||
+ | mkdir cl345 | ||
+ | cd cl345 | ||
+ | unzip -ax ../ | ||
+ | sudo make shared | ||
+ | sudo mv libcl.so.3.4.5 / | ||
+ | sudo update-alternatives --install / | ||
+ | sudo update-alternatives --install / | ||
+ | |||
+ | If at this point you still have MIS running you must stop and restart it. If you previously had attempted to install Cryptlib you may need to delete your ssl.cert when MIS is shutdown: | ||
+ | |||
+ | sudo rm / | ||
+ | |||
+ | ==== Apple macOS (Intel) | ||
- | In OS X, Mystic looks for Cryptlib in the " | + | In macOS, Mystic looks for Cryptlib in the " |
The source is contained in the above download section. | The source is contained in the above download section. | ||
Line 61: | Line 103: | ||
The following steps can be executed to compile and install Cryptlib: | The following steps can be executed to compile and install Cryptlib: | ||
- | * Download the source code .zip into its own directory (lets say /cryptlib and cl3431.zip for this example) | + | * Download the source code .zip into its own directory (lets say /cryptlib and cl3441.zip for this example) |
- | * Switch to the /cryptlib directory where the cl3431.zip is located | + | * Switch to the /cryptlib directory where the cl3441.zip is located |
- | * Type "unzip -a cl3431.zip" to extract the source code ZIP into the /cryptlib directory | + | * Type "unzip -a cl3441.zip" to extract the source code ZIP into the /cryptlib directory |
* Type "sudo make shared" | * Type "sudo make shared" | ||
- | * Type "ls libcl*.dylib*" | + | * Type "ls libcl*.dylib*" |
* Move the library into the library path and rename it so that Mystic will find it. Execute the following: | * 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 / | + | * "sudo mv libcl.3.4.4.dylib / |
You can now delete the /cryptlib directory if you wish. The library is installed and read to be used by Mystic! | You can now delete the /cryptlib directory if you wish. The library is installed and read to be used by Mystic! | ||
cryptlib.1545770475.txt.gz · Last modified: 2018/12/25 14:41 by avon