DEV Community

SherbertIll6
SherbertIll6

Posted on

Configuring a Custom HTTPS Certificate for SafeLine

The SafeLine management platform uses a self-signed certificate by default, which can be inconvenient as it requires an extra click to bypass the security warning every time you visit. After checking the official documentation and not finding any guidance on this, I decided to explore the process myself.

Preparation

First, prepare a trusted certificate and private key file.

Implementation

1.Connect to the server and navigate to the /data/safeline/resources/management/certs directory.
2.Backup the default certificate by running:

   mv server.crt server.crt-2023-08-11
   mv server.key server.key-2023-08-11
Enter fullscreen mode Exit fullscreen mode

3.Replace the old certificate with your trusted certificate and private key, renaming them to server.crt and server.key respectively.

Image description

4.After replacing the certificates, restart the SafeLine services. Since I wasn’t sure which specific Docker container was running SafeLine, I opted to restart all SafeLine-related Docker containers.

Image description

Verification

Once the services are restarted, access the SafeLine WAF management interface in your browser. You should now see that the management platform is using the trusted certificate.

Image description

Website: SafeLine
Discord GitHub

Top comments (0)