certbot 更新 letsencrypt SSL 失敗

certbot renew 出現下面的錯誤
Cert is due for renewal, auto-renewing…
Could not choose appropriate plugin: The manual plugin is not working; there may be problems with your existing configuration.
The error was: PluginError(‘An authentication script must be provided with –manual-auth-hook when using the manual plugin non-interactively.’)
Attempting to renew cert (def.com-0001) from /etc/letsencrypt/renewal/def.com-0001.conf produced an unexpected error: The manual plugin is not working; there may be problems with your existing configuration.
The error was: PluginError(‘An authentication script must be provided with –manual-auth-hook when using the manual plugin non-interactively.’). Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/abc.com-0003/fullchain.pem (failure)
/etc/letsencrypt/live/def.com-0001/fullchain.pem (failure)

Read more

使用 certbot 取得 免費 SSL Wildcard 憑證

假設我有一個網域,上面有很多個子域名,在現在沒有SSL無法受到google關愛的眼神。
certbot就是一個很好用的工具
搭配Let’s Encrypt 免費的SSL
其實,可以買足90%以上的需求
Certbot自動模式可以一次滿足所有的子域名需求
100個域名之內,可以使用一張憑證處理
但是所有的簽署域名都是在憑證上出現
這個看起來好像不是這麼的「專業」

系統需求
1.DNS Service
我用的是CloudFlare
2.Linux Server
3.Apache / NGINX 服務 Read more

拿掉CloudFlare 免費版服務之後,其實速度變快了

CloudFlare_LasAgeles CDN 內容遞送網路,原始的目的,是在加速內容的傳送,而CloudFlare的CDN以本站為例,連線路徑先是到LA再回台灣。

由於CloudFlare免費版,不能選擇節點,以本站來說,要從台灣連到LA(洛杉磯),再從LA連回台灣的伺服器。

就物理性來說,如果能在台灣本島就完成存取,並沒有比較慢。 Read more

解決 公司內用微軟 DNS 使用免費的CloudFlare dns loop SSL 憑證困擾

公司自有微軟 DNS Server (而且還2台)
公司的AD Domain 是 aaa.com
公司的網站是 www.aaa.com
DNS Server 不能直接寫 目標伺服啊ip 因為不會http rewrite https
而且會有ssl憑證的問題

http 要透過cloudlfare rewrite https 才會生效,所以要透過Cloudflare,內部DNS不能設定實體主機的真實IP
透過CloudFlare代理,才不會有問題

各種方式都試過了,都不行。死了我一堆腦細胞
Microsoft DNS Server & Cloudflare issue
Read more

政府的抽獎活動網站只有IP的 我的三分鐘反查結果

新聞來源
中市觀旅局網路有獎徵答開跑 萬元禮券有機會抱回家

看到LINE群在傳的免費抽獎,我剛快睡了,查了一下

活動網址
https://123.110.6.121/
台中市觀旅局富市台中、廉潔好觀光
Read more

中華電信網站目前仍使用TLS 1.0 技術 瀏覽器都快不支援了

身為台灣電信業者龍頭,網站怎麼還是使用這麼舊的加密機制?
我之前就知道Firefoxa要停止支援,今天我的MRTG圖出不來
我才知道正式啟動,只是沒有想到的是,不支援的是中華電信。

firefox Version 74 取消支援 TLS1.0/1.1

Read more

台灣的主機寄存商,實在不敢恭維

之前說過,我有兩個案子hosting(寄存)在台灣的主機商,其中有一個案子,放在台灣網域中心,為什麼我要拿這個case來說呢?因為,我的開發環境在國外的主機上,程式開發完之後,移回來台灣的主機上,結果,這是一個惡夢的開始。

首先,php 5建議register_globals建議關閉,國外的主機商,提供每個user自己的php.ini設定,可以決定要用php4或是php5的環境(php6都快要發佈了),當然session的設定,暫存檔的設定,記憶體的設定和register_globals的設定,都可以自己設定,可是台灣網域中心不支援個人設定,而且預設的register_globals是開啟的,有一些php5套裝程式遇到這個設定,就會跑出警告訊息,甚至於不給安裝。

Read more