【发布时间】:2014-12-25 18:55:07
【问题描述】:
我在 AWS 中使用弹性 beanstalk。我有一个试图部署到 https 的 java/tomcat 应用程序。我现在花了将近 2 天的时间来尝试启动和运行 https,但成功率很低。我所做的和我所看到的正在发生。
1. I bought and created a ssl certificate that I installed with my load balancer.
2. I pointed 443 in load balancer security to 80 as the instructions stated and I've also tried pointing it to 443,8443,4443
3. In my security group for my beanstalk instance, I enabled 443 to all external ips
4. In beanstalk I turned on port 443
现在我真的很困惑。
1. As long as I don't try and secure my entire application, I'm able to get ssl working in my apps admin accounts without issue. The app will automatically redirect the protocol from http to https.
2. Oddly enough I'm outputting the active port and no matter if I'm in http or https, the app is seeing the active port as 8080. How could this be if the load balancer is suppose to be using 443? Also, how would the ssl certificate work on port 8080 or is the ssl certificate working somehow on the load balancer side and the load balancer is doing some sort of port forwarding to the ec2 instance?
3. If I attempt to secure the entire application doing a forced redirect to https from http. The app fails to load. I've tried redirecting to 443,8443,4443 without success. I need to do this redirect in order to tell google my pages have moved from 80 to 443.
有人了解我正在发生的事情或它是如何工作的吗?
【问题讨论】:
标签: tomcat ssl amazon-web-services amazon-elastic-beanstalk ec2-ami