In this article, we provide step-by-step guidelines on how to generate a CSR code and install an SSL certificate on 4D Server. Besides configuration instructions, this four-part guide also features a brief history of 4D, as well as useful tips on where to buy the best SSL certificate for 4D Server. If you’ve already generated your CSR code on another platform and received the signed SSL certificate from your CA, feel free to skip part one and jump straight to the installation steps.

Generate a CSR Code on 4D server

The CSR (Certificate Signing Request) is a block of encoded text with your contact data that Certificate Authority requires to validate and issue the SSL certificate. You can generate the CSR in different ways, but the quickest and easiest one is to use our CSR generator tool. It’s user-friendly and doesn’t require any technical knowledge.


Another option is to use the OpenSSL utility. If you’re familiar with SSH and command lines, you can create your CSR via OpenSSL. Please note that you may need to download the utility for Windows or macOS. Here’s how to generate your CSR with OpenSSL:

  1. Open Terminal.
  2. Navigate to a directory in which you will store the documents. For example, you might create a folder on your Desktop named SSL certificate and navigate there:
  3. Run the following command:
    openssl req -new -newkey rsa:2048 -nodes -keyout yourdomain.key -out yourdomain.csr
  4. You’ll be prompted to enter your contact details. Please use the examples below:
    • Country Name (2 letter code): enter the official two-letter code of your country. For instance, US.
    • State or Province Name: enter the full name of the state where your company is registered. For example, Tennessee.
    • Locality Name: enter the full name of the city where your company is located. For instance, Nashville.
    • Organization Name: enter the full legal name of your organization. For example, Your Company LLC.
    • Organizational Unit Name: enter the department in charge of your SSL Certificate. For example, IT.
    • Common Name: provide the FQDN (fully-qualified domain name) you want to secure. For example,

The OpenSSL utility will generate your CSR and private key files. The private key file is necessary for the decryption of your SSL certificate. You’ll need to open your CSR file with a text editor and copy its contents into the corresponding box during the SSL order process.

4D language commands

You can also create the CSR code within the 4D system by using specific commands such as Generate Encryption Keypair and Generate Certificate Request. For more information, please refer to the official 4D documentation.

Install an SSL Certificate on 4D server

After the Certificate Authority delivers your SSL certificate via email, you need to download the ZIP archive and extract its contents on your machine. 4D accepts certificates in PEM format. To ensure that your certificate has the right format, create a text file named “cert.pem” and paste the contents of your certificate into it. Place the “cert.pem” file in your web server folder containing the database structure.

Before activating the SSL certificate, make sure the following components are installed on your server:

  • 4DSLI.DLL (Windows) or 4DSLI.bundle (Mac OS): Secured Layer Interface dedicated to the TLS management. By default, the windows file is located next to the executable file of the 4D or 4D Server application. The MAC file resides in the Native Components subfolder of the 4D or 4D Server package.
  • Your private key (key.pem) file, and certificate (cert.pem) file placed next to the database structure file.
    Note: If you’re using the 4D remote mode, place your files in the local resources database folder, on the remote machine. For more information, check the Get4D folder command.

Activate your SSL certificate

To activate your SSL certificate on the 4D webserver you must enable HTTPS.

  1. Go to the database settings, and select the Web icon.
  2. In the Configuration tab, and make sure the Enable HTTPS option is checked.
  3. That’s it! Your SSL certificate should be up and running.

After you install the SSL Certificate, it’s recommended to scan your new certificate for potential errors or vulnerabilities, just to be on the safe side of things. With these powerful SSL tools, you can get instant reports on your SSL Certificate and its configuration.

4D server history and versions

The 4D server is part of the 4th Dimension relational database management system and integrated development environment. It was created by Laurent Ribardière in 1984 as Silver Surfer during early development. Today, 4D is published by the French company 4D SAS. 4D can be run in two modes. The single-user mode allows for 1 person to run the application, while 4D in remote mode is used for connecting to a 4D Server. At the time of writing this guide, two versions of 4D, v17.x, and v18.x are still supported. 

Where to buy the best SSL certificate for 4d Server?

SSL dragon is your one-stop place for all your SSL needs. We offer the lowest prices on the market for the entire range of our SSL products. We’ve partnered with the best SSL brands in the industry to offer you high-end SSL security and dedicated support. All our SSL certificates are compatible with 4d Server. Here are the SSL certificate types you can buy from us:

To help you select the perfect SSL certificate, we created a couple of handy SSL tools. Our SSL Wizard can recommend the best SSL deal for your online project, while the Certificate Filter, can help you sort and compare various products.

If you find any inaccuracies, or you have details to add to these SSL installation instructions, please feel free to send us your feedback at [email protected] Your input would be greatly appreciated! Thank you.