ワイルドカードTLS証明書の作成
原本の場所
/home/kobore/www/soft/wildcard_TLS.mm
1. 背景
■Let’s Encrypt でワイルドカード対応のSSL証明書を取得する必要が発生した
サーバのサブドメインで、位置情報を扱う必要があり、否応がなく対応しなければならなくなった
■*.sea-anemone.techに全部対応できるようにすること→ 例えば、loc.sea-anemone.tech. tech.sea-anemone.techとか
2.前提
■"お名前.com"でRoute53に飛ばす
3.準備
4.手続
/usr/lib/python3/dist-packages/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.8) or chardet (3.0.4) doesn't match a supported version! RequestsDependencyWarning)
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator manual, Installer None
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(A)gree/(C)ancel:
A
Would you be willing to share your email address with the Electronic Frontier Foundation, a founding partner of the Let's Encrypt project and the non-profit organization that develops Certbot? We'd like to send you email about our work encrypting the web, EFF news, campaigns, and ways to support digital freedom.
(Y)es/(N)o:
Y
Obtaining a new certificate
Performing the following challenges:
dns-01 challenge for sea-anemone
dns-01 challenge for sea-anemone
NOTE: The IP of this machine will be publicly logged as having requested this certificate. If you're running certbot in manual mode on a machine that is not your server, please ensure you're okay with that.
Are you OK with your IP being logged?
(Y)es/(N)o:
ここで一時待機する
$ sudo aws iam upload-server-certificate --server-certificate-name mory-mobi-certificate-20200130 --certificate-body file:///etc/letsencrypt/live/sea-anemone/cert.pem --private-key file:///etc/letsencrypt/live/sea-anemone/privkey.pem --certificate-chain file:///etc/letsencrypt/live/sea-anemone/chain.pem --path /sea-anemone/
5.Route53からレコードセットしなればいけない気がするが、今動いているので、手を付けていない
以上