Google App Engineが独自ドメインでSSL化に対応したので、費用をかけずにhttpsにするにはどうすればいいのかなーっと色々と検索かけたら、letsencryptを使えばコスト0で運用できるとわかったので、適用するまでの方法を書きたいと思います。
まずは、Certbotのcloneをします。
git clone https://github.com/certbot/certbot cd certbot
$ git clone https://github.com/certbot/certbot Cloning into 'certbot'... remote: Counting objects: 41606, done. remote: Compressing objects: 100% (7/7), done. remote: Total 41606 (delta 1), reused 0 (delta 0), pack-reused 41599 Receiving objects: 100% (41606/41606), 11.67 MiB | 12.00 KiB/s, done. Resolving deltas: 100% (29658/29658), done. Checking connectivity... done.次に、
Let's encryptで無料のSSL/TLS証明書を取得して独自ドメイン運用のGAEに入れて使う
を読んでみると、下記のコマンドでインストールしたと書かれていました。
./certbot-auto certonly --manualでコマンドを叩くと、エラーが発生しました。
$ ./certbot-auto FATAL: Mac OS X support is very experimental at present... if you would like to work on improving it, please ensure you have backups and then run this script again with the --debug flag!ということで、mac os 10.12で実行するとエラーとなり。
$ ./certbot-auto --debugとしたら、インストールが始まりました。
適用したいドメイン名を求められたので、書きます。
復元用にメアドも入力します。
プログレスが進捗していきます。
Agreeを選択します。
プログレスが進捗します。
この後、
FailedChallenges: Failed authorization procedure. goodrobot.jp (tls-sni-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Failed to connect to XXX.XXX.XX.XX:XXX for TLS-SNI-01 challengeというエラーがでて失敗しました。
その2に続きます。
0 コメント:
コメントを投稿