Dehydratedで無料のSSL証明書を定期更新
dehydratedのダウンロード
cd /opt git clone https://github.com/dehydrated-io/dehydrated
SSLを取得するドメイン一覧の作成
vi /opt/dehydrated/domains.txt
foo.bar.com www.foo.bar.com
設定ファイルの作成
vi /opt/dehydrated/config
WELLKNOWN="/var/www/dehydrated" CA="https://acme-v02.api.letsencrypt.org/directory" HOOK=/opt/dehydrated/hook.sh
hook.shの作成
#!/usr/bin/env bash
SUBJECT="SSL update status"
EMAIL_TO=あなたのメールアドレス
EMAIL_FROM=root@ドメイン名
deploy_challenge() {
local DOMAIN="${1}" TOKEN_FILENAME="${2}" TOKEN_VALUE="${3}"
}
clean_challenge() {
local DOMAIN="${1}" TOKEN_FILENAME="${2}" TOKEN_VALUE="${3}"
}
sync_cert() {
local KEYFILE="${1}" CERTFILE="${2}" FULLCHAINFILE="${3}" CHAINFILE="${4}" REQUESTFILE="${5}"
}
deploy_cert() {
local DOMAIN="${1}" KEYFILE="${2}" CERTFILE="${3}" FULLCHAINFILE="${4}" CHAINFILE="${5}" TIMESTAMP="${6}"
PER_DOMAIN_SUBJECT="SSL cert has been updated for ${DOMAIN}"
echo "${DOMAIN} has a new SSL certificate - please login, do apachectl configtest and then reload" | mailx -s "${PER_DOMAIN_SUBJECT}" \
-S from="${EMAIL_FROM}" \
${EMAIL_TO}
}
deploy_ocsp() {
local DOMAIN="${1}" OCSPFILE="${2}" TIMESTAMP="${3}"
}
unchanged_cert() {
local DOMAIN="${1}" KEYFILE="${2}" CERTFILE="${3}" FULLCHAINFILE="${4}" CHAINFILE="${5}"
PER_DOMAIN_SUBJECT="SSL cert unchanged for ${DOMAIN}"
echo "${DOMAIN}'s SSL cert is still valid" | mailx -s "${PER_DOMAIN_SUBJECT}" \
-S from="${EMAIL_FROM}" \
${EMAIL_TO}
}
invalid_challenge() {
local DOMAIN="${1}" RESPONSE="${2}"
PER_DOMAIN_SUBJECT="SSL cert validation failed for ${DOMAIN}"
echo "Validation failed for ${DOMAIN} - please investigate" | mailx -s "${PER_DOMAIN_SUBJECT}" \
-S from="${EMAIL_FROM}" \
${EMAIL_TO}
}
request_failure() {
local STATUSCODE="${1}" REASON="${2}" REQTYPE="${3}" HEADERS="${4}"
echo "HTTP request failed with status = ${STATUSCODE} - please investigate" | mailx -s "${SUBJECT}" \
-S from="${EMAIL_FROM}" \
${EMAIL_TO}
}
generate_csr() {
local DOMAIN="${1}" CERTDIR="${2}" ALTNAMES="${3}"
}
startup_hook() {
# This hook is called before the cron command to do some initial tasks
# (e.g. starting a webserver).
:
}
exit_hook() {
local ERROR="${1:-}"
}
HANDLER="$1"; shift
if [[ "${HANDLER}" =~ ^(deploy_challenge|clean_challenge|sync_cert|deploy_cert|deploy_ocsp|unchanged_cert|invalid_challenge|request_failure|generate_csr|startup_hook|exit_hook)$ ]]; then
"$HANDLER" "$@"
fi
dehydrated用のドキュメントルートの作成
mkdir -p /var/www/html/dehydrated
apacheのconfファイルを作成
ドメインを問わず/.well-known/acme-challengeへのアクセスを/var/www/html/dehydratedにマッピングする
vi /etc/httpd/conf.d/dehydrated.conf
Alias /.well-known/acme-challenge /var/www/html/dehydrated
<Directory "/var/www/html/dehydrated">
AllowOverride None
Require all granted
</Directory>
apacheの再起動
systemctl restart httpd.service
利用状況の承諾
cd /opt/dehydrated ./dehydrated --register --accept-terms
証明書の生成
cd /opt/dehydrated ./dehydrated -c
A Dog-Friendly Café and an Unexpected Sense of Belonging

Until recently, I used to think of my neighbors as distant figures—people who mostly existed to enforce rules like when and how to take out the garbage. My mental image of community was shaped more by obligation than connection. But something shifted.
It began with a small, dog-friendly café near my house—a rarity in Japan. I started visiting with Leon and Yuki, my two Japanese Spitz dogs. The café owner, a kind woman who runs the place on her own, immediately took a liking to them. Over time, we began chatting. She gave me practical advice on everything from where to shop for good deals to how to handle caregiving responsibilities (介護). In return, I helped her with tech—PC issues, smartphone setup, and even introduced her to ChatGPT.
It didn’t stop there. Through that café, I got to know other regulars—mostly people in their 60s or older. We slowly formed a circle. We share laughs, frustrations, and even go on outings together. Just the other day, we went strawberry picking (いちご狩り). I drove, and although it was a bit tight in the back of my UX300e, it was a short trip, and we had a great time.
These friendships have changed how I feel about my neighborhood. Where I once saw rigidity and distance, I now see warmth and mutual support. I no longer feel like I’m on my own.
Helping these friends with tech has become a small but meaningful way to contribute. I show them how to use smartphones, how to set up useful apps, and sometimes even how to explore AI. In return, I get companionship, practical wisdom, and a sense of belonging that no app or screen can provide.
In a society where many quietly shoulder their burdens, these connections have reminded me that community doesn’t have to be formal or loud. It can be small, kind, and real. And sometimes, it starts with a dog, a coffee, and a little curiosity.
If you feel out of touch, try being gently present in the lives around you. You might find allies where you least expect them.
天とじ
こちらのレシピを参考に:
- 天ぷらは大皿半分くらいの量
- 卵は2個。溶いておくが、おそらく、あまり溶かないほうがそれっぽい
- そばつゆストレートを100ml
- 砂糖を大さじ1,みりんとしょうゆをそれぞれお小さじ1
- 砂糖、みりん、しょうゆ、そばつゆを鍋にかける。フツフツとしたら天ぷらを入れる。溶き卵をかけて蓋をする。30秒ほど待つ(卵をどれくらい火を通すかによる)
WordPress: cURL error 60: SSL certificate problem: unable to get local issuer certificate
プラグインを追加しようとしていて、この不具合に気づきました。
どうやらWordPressに同梱されているルート証明書(ca-bundle.crt)が古いようです。
まず、wp-includes/certificatesの中に入っている既存のca-bunde.crtをバックアップします。
次にこちらから最新のca-bundle.crtをダウンロードします
WordPress/wp-includes/certificates/ca-bundle.crt at master · WordPress/WordPress · GitHub
最後に、最新のca-bundle.crtで古いやつを上書きします