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.

Quadratic AI

Quadratic AI – The Spreadsheet with AI, Code, and Connections

  • AI-Powered Insights: Ask questions in plain English and get instant visualizations
  • Multi-Language Support: Seamlessly switch between Python, SQL, and JavaScript in one workspace
  • Zero Setup Required: Connect to databases or drag-and-drop files straight from your browser
  • Live Collaboration: Work together in real-time, no matter where your team is located
  • Beyond Formulas: Tackle complex analysis that traditional spreadsheets can't handle

Get started for free.

Watch The Demo 📊✨

Top comments (0)

AWS Q Developer image

Your AI Code Assistant

Implement features, document your code, or refactor your projects.
Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay