DEV Community

Carrie
Carrie

Posted on

3 1 1 1 1

How to Update SSL Certificate in SafeLine WAF through a File

Some users find it cumbersome to manually upload certificates via the interface when using the certificate management feature of SafeLine WAF. They prefer to store certificate files in a fixed directory, allowing SafeLine to automatically detect and update them after the files are overwritten. This way, the entire process can be automated using some tools.

To address or optimize these issues, SafeLine version 7.2.0 introduced the feature of automatically reading and updating certificates. Here’s how to use this feature:

Prerequisites

WAF version ≥ 7.2.0

Upload a Certificate for one time

To inform the WAF that a certificate needs to be periodically updated, you need to upload a certificate to the WAF for one time.

Image description

Obtain the Certificate Path

Certificates are stored by default under /data/safeline/resources/nginx/certs

ls /data/safeline/resources/nginx/certs/ -lh
total 8.0K
-rw-r--r-- 1 root root 1.4K Nov 22 18:15 cert_1.crt
-rw-r--r-- 1 root root 1.7K Nov 22 18:15 cert_1.key
Enter fullscreen mode Exit fullscreen mode

Update the Certificate Using Certbot

After obtaining the certificate using tools like certbot, simply overwrite the above files.

SafeLine WAF Scheduled Updates

SafeLine WAF refreshes the certificate content every hour by default.

Sentry blog image

Identify what makes your TTFB high so you can fix it

In the past few years in the web dev world, we’ve seen a significant push towards rendering our websites on the server. Doing so is better for SEO and performs better on low-powered devices, but one thing we had to sacrifice is TTFB.

Read more

Top comments (0)

Cloudinary image

Video API: manage, encode, and optimize for any device, channel or network condition. Deliver branded video experiences in minutes and get deep engagement insights.

Learn more

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay