ちょうど1年前にこんな記事を投稿していた
actix-web https サポート - gikoha’s blog
ここで作ったドメインにOCIのIPを割り振ってアクセスしまくっていたが、どうもアプリが立ち上がらないと思ったら1年間で無料期間が切れていた
.ml などのドメインが無料だったのでそっちに移動
ドメイン移動した場合は certbotを再度起動するとどのドメインを登録するかだけ聞いてくるから、新しいドメインを入力するだけでよい模様
sudo certbot certonly --standalone Saving debug log to /var/log/letsencrypt/letsencrypt.log Please enter the domain name(s) you would like on your certificate (comma and/or space separated) (Enter 'c' to cancel): hogehoge.ml Requesting a certificate for hogehoge.ml Successfully received certificate. Certificate is saved at: /etc/letsencrypt/live/hogehoge.ml/fullchain.pem Key is saved at: /etc/letsencrypt/live/hogehoge.ml/privkey.pem This certificate expires on 2023-01-19. These files will be updated when the certificate renews. NEXT STEPS: - The certificate will need to be renewed before it expires. Certbot can automatically renew the certificate in the background, but you may need to take steps to enable that functionality. See https://certbot.org/renewal-setup for instructions.
あとはいつも通り
./httptest --dbenv OCISTRING --privkey /etc/letsencrypt/live/hogehoge.ml/privkey.pem --certkey /etc/letsencrypt/live/hogehoge.ml/cert.pem --domain hogehoge.ml --ssl --apikey apikey &
とかでアプリを起動するだけ
androidアプリは app/src/main/res/raw/cert の書き換えが必要だった