ACM 申請
當網站需要支援 HTTPS 時,就需要憑證 (ceritificate),憑證的購買需要一定的時間及費用。AWS 提供的 Certificate Manager 申請憑證相當方便,而且是免費的。當然你沒辦法從 AWS 下載憑證,只能在 AWS 中使用,最常會使用的是 ELB,而 ELB 是需要收費的。申請需要先訂好 domain,可以使用 wildcard (*),但是必須放在最左方。像是可以使用 *.cookieandcoke.com 來申請,那麼 hello.cookieandcoke.com 及 world.cookieandcoke.com 都可以使用該憑證。




設定 ELB
來到 EC2 console 下,選擇 Create Load Balancer,新增完成後選擇 Add listener。




Reference
https://docs.aws.amazon.com/acm/latest/userguide/acm-certificate.html
https://aws.amazon.com/tw/certificate-manager/pricing/
沒有留言:
張貼留言