<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Coder Legion - Recent posts tagged certificate</title>
<link>https://coderlegion.com/tag/certificate</link>
<description>Powered by Question2Answer</description>
<item>
<title>How to update SSL certificates through file upload in SafeLine WAF</title>
<link>https://coderlegion.com/8109/how-to-update-ssl-certificates-through-file-upload-in-safeline-waf</link>
<description>&lt;p&gt;Some users find it cumbersome to manually upload certificates through the interface when using Safeline WAF's SSL Cert feature. &lt;/p&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/chaitin/SafeLine/issues/782&quot;&gt;[Suggestion] Add path import method for certificates&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/chaitin/SafeLine/issues/733&quot;&gt;[Bug] After manually updating certificate files and restarting the container, the expiration time in the [Certificate Management] interface is not synchronized&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/chaitin/SafeLine/issues/362&quot;&gt;Suggestions for combining acme.sh for automatic certificate deployment&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/chaitin/SafeLine/issues/1205&quot;&gt;[Suggestion] Allow loading wildcard certificate from file system&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To solve or optimize the above issues, Safeline Community Edition launched the automatic certificate reading and updating feature in &lt;code&gt;version 7.2.0&lt;/code&gt;. Below is an introduction to how to use this feature.&lt;/p&gt;
&lt;h3 id=&quot;prerequisites&quot;&gt;Prerequisites&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;WAF version &amp;gt;= 7.2.0&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;upload-certificate-once&quot;&gt;Upload Certificate Once&lt;/h3&gt;
&lt;p&gt;To let the WAF know that there are certificates that need periodic updates, you need to upload the certificate once in the WAF.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1boud7sgemty8vexo37j.png&quot; alt=&quot;Image description&quot;&gt;&lt;/p&gt;
&lt;h3 id=&quot;get-certificate-path&quot;&gt;Get Certificate Path&lt;/h3&gt;
&lt;p&gt;By default, certificates are saved in &lt;code&gt;/data/safeline/resources/nginx/certs&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;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
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;update-certificates-using-files&quot;&gt;Update Certificates Using Files&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;You can use tools like certbot to apply for free certificates&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;After obtaining the certificates, simply overwrite the above files&lt;/p&gt;
&lt;h3 id=&quot;waf-automatic-updates&quot;&gt;WAF Automatic Updates&lt;/h3&gt;
&lt;p&gt;WAF refreshes certificate content every hour by default.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;SafeLine Resources:&lt;/strong&gt;&lt;br&gt;
SafeLine Website: &lt;a rel=&quot;nofollow&quot; href=&quot;https://ly.safepoint.cloud/ShZAy9x&quot;&gt;https://ly.safepoint.cloud/ShZAy9x&lt;/a&gt;&lt;br&gt;
Live Demo: &lt;a rel=&quot;nofollow&quot; href=&quot;https://demo.waf.chaitin.com:9443/statistics&quot;&gt;https://demo.waf.chaitin.com:9443/statistics&lt;/a&gt;&lt;br&gt;
Discord: &lt;a rel=&quot;nofollow&quot; href=&quot;https://discord.gg/dy3JT7dkmY&quot;&gt;https://discord.gg/dy3JT7dkmY&lt;/a&gt;&lt;br&gt;
Doc: &lt;a rel=&quot;nofollow&quot; href=&quot;https://docs.waf.chaitin.com/en/home&quot;&gt;https://docs.waf.chaitin.com/en/home&lt;/a&gt;&lt;br&gt;
Github: &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/chaitin/SafeLine&quot;&gt;https://github.com/chaitin/SafeLine&lt;/a&gt;&lt;/p&gt;
</description>
<category>Getting Started</category>
<guid isPermaLink="true">https://coderlegion.com/8109/how-to-update-ssl-certificates-through-file-upload-in-safeline-waf</guid>
<pubDate>Wed, 03 Dec 2025 03:49:25 +0000</pubDate>
</item>
</channel>
</rss>