Skip to content

acme.shでIPアドレスに対してSSL証明書を発行する

acme.shを使って、ドメイン不要のSSL証明書を発行します。

cf.

手順

  • ルートユーザに昇格します:
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