How to update SSL certificates through file upload in SafeLine WAF

posted 1 min read

Some users find it cumbersome to manually upload certificates through the interface when using Safeline WAF's SSL Cert feature.

They want to store certificate files in a fixed directory and have Safeline automatically detect and update them after overwriting, allowing the entire process to be completed through automation tools. Related issues include:

To solve or optimize the above issues, Safeline Community Edition launched the automatic certificate reading and updating feature in version 7.2.0. Below is an introduction to how to use this feature.

Prerequisites

  • WAF version >= 7.2.0

Upload Certificate Once

To let the WAF know that there are certificates that need periodic updates, you need to upload the certificate once in the WAF.

Image description

Get Certificate Path

By default, certificates are saved in /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

Update Certificates Using Files

  • You can use tools like certbot to apply for free certificates

After obtaining the certificates, simply overwrite the above files

WAF Automatic Updates

WAF refreshes certificate content every hour by default.

SafeLine Resources:
SafeLine Website: https://ly.safepoint.cloud/ShZAy9x
Live Demo: https://demo.waf.chaitin.com:9443/statistics
Discord: https://discord.gg/dy3JT7dkmY
Doc: https://docs.waf.chaitin.com/en/home
Github: https://github.com/chaitin/SafeLine

1 Comment

0 votes

More Posts

I’m a Senior Dev and I’ve Forgotten How to Think Without a Prompt

Karol Modelskiverified - Mar 19

How I Built a React Portfolio in 7 Days That Landed ₹1.2L in Freelance Work

Dharanidharan - Feb 9

Bash Script to Automatically Renew and Reload SSL Certificates

Gift Balogun - Mar 20

A Guide to Better Code Organization in JavaScript Through File Separation

Michael Larocca - Nov 17, 2025

The SSL Handshake Failed: Debugging the "Invisible Wall" in Monoliths and Microservices

webMethodMan - Jan 22
chevron_left

Related Jobs

View all jobs →

Commenters (This Week)

3 comments
1 comment
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!