LiteSpeedをhttpsにしよう

LiteSpeedはポート7080の管理者画面で設定をすることができます。今回は英語のページを参考にするので、少し注釈していきます。

https://azdigi.com/blog/en/linux-server-en/web-server/install-lets-encrypt-ssl-on-openlitespeed/

Install Let’s Encrypt SSL on OpenLiteSpeed

コマンドは次のように置き換えていきます。

sudo apt install certbot
sudo certbot certonly --webroot -w /usr/local/lsws/WordPress/html/ -d ドメイン名
azdigi.cfは自分のドメイン名に置き換えます。鍵の場所は次の通りです。
/etc/letsencrypt/live/ドメイン名/privkey.pem
/etc/letsencrypt/live/ドメイン名/cert.pem

これでsslの設定ができ、httpsで動作します。ファイアウォールとポートフォワーディングに443番を追加するのも忘れないようにしましょう。