Client-Core SSL support » History » Version 9

« Previous - Version 9/15 (diff) - Next » - Current version
ChrisH, 08/22/2013 07:14 AM

Client-Core SSL support

If you wish to setup an SSL connection between the core and client, you must have compiled both with the "-DWITH_OPENSSL=ON" cmake option.
In case you use a binary version, verify that it was built with SSL support.
  • The Windows binary distribution supports SSL out of the box. See Windows notes at the bottom.

You don't know where to look for whether SSL support is available in your core?

Start your core once and look out for warnings in /var/log/quassel/quasselcore like:

Warning: SslServer: Certificate file /home/quassel/.config/ does not exist
Warning: SslServer: Unable to set certificate file
Quassel Core will still work, but cannot provide SSL for client connections.

Then you need to generate a certificate file to be used for the connections.
As the user that starts quassel-core, issue something like the following command on the server running the core:

>=Version 0.4

openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout ~/.config/ -out ~/.config/

You might use a different configuration directory. Check if your core gets started with the --configdir command-line option.

Note that Kubuntu packages for Jaunty (9.04) and later do this step for you.

Start the core and select SSL in your Client as shown below:

Creating a certificate on Windows:

  1. Download Open SSL for Windows . I used the Win32 OpenSSL v1.0.1c Light version, but other/later versions will work too as long as your system supports them. Don't forget to also download the relevant Visual C++ redist from that page and install it first. When installing OpenSSL, I chose to install the OpenSSL DLLs to the OpenSSL directory (not to windows directory), but it SHOULD work either way.
  2. Open a command prompt, navigate to the openssl bin directory (typically cd c:\openssl-win32\bin), then issue the following command:
    openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout %APPDATA%/ -out %APPDATA%/ -config openssl.cfg 
    (Note that the only difference from the *nix command is the target directory for the cert (typically results in C:\Users\<USERNAME>\AppData\Roaming\ and the config file for OpenSSL which uses the sample config at the OpenSSL bin directory (openssl.cfg). If you installed the OpenSSL DLLs to the windows directory, your sample config file might be there.)
    If you still get errors. Try removing %APPDATA%/ from the paths. After the file has generated (into c:\openssl-win32\bin), manually move it to the proper location in %APPDATA%/
  3. Fill in the details for the certificate generation (pressing enter for all will also work), and now core should have its certificate ready for encrypted communication with the clients.