1. Home>
  2. memo>
  3. [メモ] ワイルドカード証明書の取得&更新(certbot + certbot-dns-cloudflare @ Ubuntu 20.04 LTS)

[メモ] ワイルドカード証明書の取得&更新(certbot + certbot-dns-cloudflare @ Ubuntu 20.04 LTS)

certbotとpluginの導入

sudo apt install certbot
sudo apt install python3-certbot-dns-cloudflare

CloudflareのAPI Keyを取得

https://dash.cloudflare.com/profile/api-tokens より Global API Key を取得し、 credentials ファイルを作成
sudo mkdir /root/.cloudflare/
sudo vim /root/.cloudflare/credentials
dns_cloudflare_email = "Mail"
dns_cloudflare_api_key = "APIKEY"
/root/.cloudflare/credentials
パーミッションを設定しておく
sudo chmod 700 /root/.cloudflare
sudo chmod 600 /root/.cloudflare/credentials

証明書の取得

sudo certbot certonly \
--dns-cloudflare \
--dns-cloudflare-credentials /root/.cloudflare/credentials \
--dns-cloudflare-propagation-seconds 60 \
-d example.com \
-d *.example.com

certbot.timer を有効化

sudo systemctl enable --now certbot.timer
sudo systemctl status certbot

● certbot.timer - Run certbot twice daily
     Loaded: loaded (/lib/systemd/system/certbot.timer; enabled; vendor preset: enabled)
     Active: active (waiting) since Wed 20xx-xx-xx xx:xx:xx UTC; 24h ago
    Trigger: Fri 20x-xx-xx x:xx:xx UTC; 9h left
   Triggers: ● certbot.service

ホニャプランについて

パッケージ・工作・ノベルティ・飛び出す絵本など、紙器設計の技術を生かした平面と立体の意匠設計・構造設計の専門家です。要望に応じてアイデアからご提案致します。企画、設計の段階から、加工、納品、その先の使い勝手まで視野にいれた、そのまま大量生産可能な省コスト設計でお応えします

service
業務用の「折る・切る・貼る」をおまかせください。

作品制作とはちょっとちがった、安価に大量(数千〜数百万部)の製造を前提にした設計に対応が可能です。実積等お問い合わせください。オンデマンド印刷+カッティングプロッタを利用した小ロット(~数百部)での製造も承ります。ご相談ください。

法人様/ 小売店様向けサービス
オーダーメイドでのアイテム開発支援、各種アイテムの卸売

法人向けの紙器・パッケージ設計、ポップアップ等オリジナル紙製アイテムの製造や、国立天文台アイテムのミュージアムショップ、書店等小売店様への直接卸し 詳細、取引条件などはフォームよりお問い合わせください