2026年6月26日 星期五

DNS-PERSIST-01 DCV

Let's encrypt 建立的新 DCV 方式 DNS-PERSIST-01

它是用綁定帳號,在域名直接設上 accounturi 的 TXT 資料,
來達到長效授權,之後經由綁定帳號來申請的憑證,就直接過了,不需再設定 DNS
已經上 Staging 環境 (--server letsencrypt_test)
預計 2026 Q2 上正式,應該快了

使用 acme.sh 先下指令取得要設定的 TXT
acme.sh --make-dns-persist-value --dns-persist-wildcard -d {domain}

設好之後,就可以 issue
acme.sh --issue -d {domain} -d *.{domain} --dns-persist

尚未上正式前,用正式的 Server (--server letsencrypt) 會收到錯誤
Cannot get domain token entry {domain} for dns-persist-01
Supported validation types are: tls-alpn-01 http-01 dns-01 , but you specified: dns-persist-01

2026年6月16日 星期二

Save Web to PNG

方法1 Playwright

npm install -g playwright
npx playwright install-deps
npx playwright install chromium

npx playwright screenshot --full-page --wait-for-timeout=3000 https://24h.pchome.com.tw screenshot.png

方法2 Chromium

dnf install chromium -y

chromium-browser --headless --disable-gpu --screenshot --window-size=1920,1080 https://24h.pchomec.com.tw

結果會輸出到當前目錄的 screenshot.png

方法1會自動捲動,存下完整頁面,方法2局限於指定的大小

 

DNS-PERSIST-01 DCV

Let's encrypt 建立的新 DCV 方式  DNS-PERSIST-01 它是用綁定帳號,在域名直接設上 accounturi 的 TXT 資料, 來達到長效授權,之後經由綁定帳號來申請的憑證,就直接過了,不需再設定 DNS 已經上 Staging 環境 (--...