acme.shでIPアドレスに対してSSL証明書を発行する
acme.shを使って、ドメイン不要のSSL証明書を発行します。
cf.
- https://github.com/acmesh-official/acme.sh
- https://github.com/acmesh-official/acme.sh/wiki/Profile-selection
手順
- ルートユーザに昇格します:
sudo su -
acme.shをインストールします:
curl https://get.acme.sh | sh -s email={mail address}
- エイリアスを設定します(任意):
alias acme.sh=/root/.acme.sh/acme.sh
- SSL証明書を発行します:
acme.sh --issue \
--server letsencrypt \
-d {IP address} \
--standalone \
--certificate-profile shortlived \
--days 3