Contents

    Securing the SQL server connection of JTL-Wawi with SSL

    Your task/initial situation

    You are running an SQL server for JTL-Wawi that can be accessed via the internet. This is usually the case if you work remotely or access JTL-Wawi from multiple locations. The communication between JTL-Wawi and your SQL database is in plain text. This means that anyone who manages to access the data can also read your SQL database. To prevent this, you now want to encrypt the data via an SSL certificate.
    Please note: If you use the JTL-Wawi Database Hosting, your connection is already secured by SSL.

    Step 1: Purchase a valid SSL certificate

    First you need to purchase a valid SSL certificate. We recommend using one of the official Microsoft certifiers. There are free and fee-based solutions for SSL certificates. Every certificate is issued specifically for the server on which it is to be used later. It is therefore important that the server address you enter when you purchase the certificate is the address via which you access your server. Once you have purchased a certificate, proceed with Step 2.

    Step 2: Set up the SSL certificate in the Management Console

    Log into the computer on which the SQL server for JTL-Wawi is running.

    1. Open the Microsoft Windows Management Console. The quickest way to do this is to open the Start menu and enter mmc.
    2. In the Management Console, go to the menu Datei (File) and select Snap-in hinzufügen/entfernen (Add/Remove snap-in).
    1. Select Zertifikate (Certificates) and click Hinzufügen (Add). Then close the window with OK.
    1. Under Konsolenstamm (Console root), select Zertifikate – Aktueller Benutzer (Certificates – Current user) and select the folder Eigene Zertifikate (Personal certificates).
    2. Right-click on the pane Objekttyp (Object type) and select Alle Aufgaben > Importieren (All tasks > Import).
    1. Add your certificate and click Weiter (Next) to complete the setup.

    Step 3: Set up the SSL certificate in the SQL server configuration manager

    You now need to set up the SSL certificate in the SQL server configuration manager. This is also performed on the computer on which the SQL server is running.

    1. Open the SQL server configuration manager for your version of Microsoft SQL Server via the Start menu.
    2. Click on SQL-Server-Netzwerkkonfiguration (SQL Server Network Configuration).
    3. Right-click on the entry with your SQL server and select the option Eigenschaften (Properties) in the context menu.
    1. A window opens. In this window, set the option Force encryption to Ja (Yes).
    1. Go to the tab Zertifikate (Certificates) and select your SSL certificate.
    2. Close the window by clicking OK.
    3. Restart your SQL server. Your connection is now secure.

    Tips and tricks for better data security

    There are other options available to increase data security alongside securing your connection to the SQL server with an SSL certificate

    Different SQL users

    With the default setting, every JTL-Wawi user accesses the JTL-Wawi database via the same SQL user. We recommend creating a separate SQL user for each user, i.e. each employee. This offers several advantages:

    • When an employee leaves your business, you can simply disable their SQL access. This means that they can no longer access JTL-Wawi.
    • You can deactivate user sa. This user is frequently attacked on Microsoft SQL databases.

    How to create new SQL users:

    1. On the computer on which the SQL server is running, open SQL Server Management Studio. If it is not installed on your computer, you can download it here: Microsoft download page.
    2. Log in to the JTL-Wawi SQL server. In the folder Sicherheit (Security), right-click on the folder Anmeldungen (Login) and select Neue Anmeldung (New login) in the context menu.
    1. Enter a Anmeldename (Login name) for the new user and select the option SQL-Server-Authentifizierung (SQL server authentication). Select a Kennwort (Password). Additionally, you can check the option Kennwortrichtlinie erzwingen (Enforce password policy). This means that the password must consist of at least 12 characters, including small and capital letters, numbers and special characters.
    1. Under the menu item Serverrollen (Server roles), assign the desired role to the user. Here you can, for example, select sysadmin if you want the user to have access to the database administration. If at least one user has sysadmin rights, user sa can later be deactivated (see below).
    1. Close the dialogue box by clicking OK.
    2. Then open JTL-Wawi on the user’s/your employee’s computer and open the database administration.
    3. Click Neues Profil (New profile).
    1. Enter a profile name, a description and the name of your SQL server in the field Servername (Server name). Click Weiter (Next).
    1. Enter the Benutzer (User) and Passwort (Password) that you specified in Step 3 of these instructions. To continue, click Weiter (Next). The profile will now be created.
    1. The user/employee can now access the JTL-Wawi database with this profile. The user/employee continues to use the login data specified in the user management of JTL-Wawi.

    Changing sa password

    If you install the Microsoft SQL Server during the installation of JTL-Wawi, the default password is sa04jT14. This password is known to anyone who has used products from JTL-Software before. Therefore, we highly recommend choosing a password that is not similar to the default password.

    1. Log in to Microsoft SQL-Server Management Studio as user sa .
    2. Expand the folder Sicherheit > Anmeldungen (Security > Login).
    3. Right-click on user sa and select Eigenschaften (Properties).
    1. Into the field Kennwort (Password), enter the new password and confirm it.

    Deactivating user sa

    Once you have created other users with sysadmin rights, we recommend deactivating user sa completely. User sa is the default user for every Microsoft SQL Server. This makes it one of the most frequent points of attack on the database.

    Please note: Make absolutely sure that there is at least one other SQL database user with sysadmin rights. For further information on this, please see the instructions further up: Different SQL users.
    1. Log in to Microsoft SQL-Server Management Studio as user sa .
    2. Expand the folder Sicherheit > Anmeldungen (Security > Login).
    3. Right-click on user sa and select Eigenschaften (Properties).
    4. Go to the menu item Status and check Deaktiviert (Deactivated) under Anmeldename (Login name).

    User sa is now disabled. If you happen to need it again at some point in the future, log in with another user with sysadmin rights and repeat Steps 1–4. In the last step, choose the option Aktiviert (Enabled).