2023年5月22日 星期一

該如何更換 SSL 憑證

webber0928

 一個突然,我們的監控跳出了通知


!!
查了才發現原來是 SSL 過期了,時間過得還真快啊~(嘆


那要如何處理這個問題呢?首先去下載SSL憑證下來,你應該會有這些東西


接著炒菜嘍~

cat 3a176a54595b6d63.crt gd_bundle-g2-g1.crt > myNewSSL.crt


然後你就可以放上去你的伺服器

server {
    listen 443 ssl;
    server_name your_domain.com;

    ssl_certificate /etc/nginx/ssl/myNewSSL.crt;
    ssl_certificate_key /etc/nginx/ssl/3a176a54595b6d63.pem;

    # Other SSL setup
    # ...
}

搞定



By webber0928

一個小菜鳥工程師,對籃球還有夢想的男孩。

0 意見:

張貼留言

Coprights @ 2016, Blogger Templates Designed By Templateism | Distributed By Gooyaabi Templates