2024年2月17日 星期六

Auto renew SSL certification

 Let’s Encrypt 組織免費提供瀏覽器認可的SSL憑證

不過這項服務每3個月需要重複執行申請手續

若想要快速的完成申請, 我們可以安裝 certbot 這項工具來幫助我們.

sudo apt install certbot python3-certbot-apache

sudo certbot --apache

在經過一些安裝步驟後, 最後只要下指令

sudo certbot renew

cerbot 就可以自動幫我們完成SSL憑證申請手續並自動放到apache web server下的目錄.

certbot 還有自動更新功能, 可以用以下指令檢查自動更新功能是否正常

sudo systemctl status certbot.timer

不同的作業系統在 certbot 官方 也都有提供完整的安裝指引.

沒有留言:

張貼留言

Python Tkinter First Example

import tkinter as tk def on_closing():     root.destroy() class MainWindow(tk.Tk):     def __init__(self, *args, **kwargs):         tk.Tk.__...