復旧しました。
そもそもの原因はpythonのようです。vimの関係もあったか?思い出すとvim関連をメンテしたような気がします。
pkg delete python37-3.7.7
pkg install py37-certbot py37-certbot-apache
vimが使えなくなったので
pkg install python37-3.7.9
Let’s Encrypt関連
その1
/usr/local/etc/letsencrypt/のliveとarchiveそれぞれのディレクトリ下にあるjg7sfr.mydns.jpディレクトリをmoveして別名にし、renewalディレクトリ下にあるjg7sfr.mydns.confもmoveして別名に。後で削除する予定
その2
/usr/local/etc/rc.d/apache24 stop
その3
この項目を実施せずその4を実施したところエラーが発生したので、初期設定時と同様に以下のコマンドを実施。
sudo certbot certonly –standalone -d jg7sfr.mydns.jp
What would you like to do?
1: Keep the existing certificate for now
2: Renew & replace the cert (limit ~5 per 7 days)
Select the appropriate number [1-2] then [enter] (press ‘c’ to cancel): 2
Renewing an existing certificate
その4
certbot certonly –webroot -w /wordpressのあるディレクトリ指定 -d jg7sfr.mydns.jp
その5
/usr/local/etc/rc.d/apache24 start