初めまして。よろしくお願いいたします。
前提・実現したいこと
AWS上のUbuntu18.04からhttpsを行うために、letsencryptを用いてssl証明書の発行がしたいです。
ムームードメインで独自ドメインの取得(以下DomainNameと記述)
AWS VPCを作成し、インターネットゲートウェイの割り当て
AWS EC2 Ubuntu18.04 Elastic IPの関連付け
AWS Route53でホストゾーンを作成し、Aレコードを作成
apache2をインストール後に
https://certbot.eff.org/lets-encrypt/ubuntubionic-apache
こちらに従って設定をしました。
この4番で止まっています。
発生している問題・エラーメッセージ
証明書が取得できません。エラーメッセージ曰くファイアウォールの問題のようですが、ポートは解放済みなので、引っかかるはずはないと思うのですが...
$ sudo certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for DomainName
Enabled Apache rewrite module
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. DomainName (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://DomainName/.well-known/acme-challenge/dvW76a6Zdy9E2O4-h8rPRlTQF6Q3bS5U7wjDNDtxMVE: Timeout during connect (likely firewall problem)
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: DomainName
Type: connection
Detail: Fetching
http://DomainName/.well-known/acme-challenge/dvW76a6Zdy9E2O4-h8rPRlTQF6Q3bS5U7wjDNDtxMVE:
Timeout during connect (likely firewall problem)To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address. Additionally, please check that
your computer has a publicly routable IP address and that no
firewalls are preventing the server from communicating with the
client. If you're using the webroot plugin, you should also verify
that you are serving files from the webroot path you provided.
試したこと
ufwを用いて、ポート80と443が解放されているかどうかの確認(解放されていました。)
ルータのポート80と443が解放されているかどうかの確認(こちらも問題なしです)
digコマンドの実施(AWS Route53で設定したIPがきちんと帰ってきます。)
ご回答よろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/06/23 17:45 編集
2019/06/23 21:45
2019/06/24 15:46
2019/06/25 14:18 編集
2019/06/24 22:02 編集
2019/06/24 23:03
2019/06/25 14:20