我使用Boxfuse在AWS上部署了一个Spring Boot应用程序。我正在努力使SSL与“mydomain.com”一起工作。我从Godaddy获得了证书。它适用于自签名证书。但是当我尝试使用GoDaddy证书时,它说Payload未能在300秒内出现。我是否需要在AWS或Godaddy上配置任何内容。现在我在server.port=443
server.ssl.enabled=true
server.ssl.key-store=classpath:example.jks
server.ssl.key-store-password=myS3cr3tPwd
server.ssl.trust-store=/cacerts/example.jks
server.ssl.trust-store-password=my0th3rPwd
文件中进行了以下配置。
2017-01-19 09:22:38.315 INFO 895 --- [ main] s.b.c.e.t.TomcatEmbedded
ServletContainer : Tomcat started on port(s): 443 (https)
2017-01-19 09:22:38.338 INFO 895 --- [ main] com.unoiatech.o3.Applica
tion : Started Application in 50.814 seconds (JVM running for 51.171
)
The system is going down NOW!
Sent SIGTERM to all processes
2017-01-19 09:26:34.501 INFO 895 --- [ Thread-4] ationConfigEmbeddedWebAp
plicationContext : Closing org.springframework.boot.context.embedded.AnnotationC
onfigEmbeddedWebApplicationContext@73f0f3d4: startup date [Thu Jan 19 09:21:48 G
MT 2017]; root of context hierarchy
2017-01-19 09:26:34.530 INFO 895 --- [ Thread-4] o.s.j.e.a.AnnotationMBea
nExporter : Unregistering JMX-exposed beans on shutdown
2017-01-19 09:26:34.553 INFO 895 --- [ Thread-4] j.LocalContainerEntityMa
nagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'defaul
t'
Sent SIGKILL to all processes
Requesting system poweroff
[ 290.976653] reboot: Power down
日志说:
boxfuse run myapp:1.x -env=test
我不知道在哪里寻找问题。任何帮助,将不胜感激 。
修改:
这是一个t2.micro实例。 Shadow DOM v1: Self-Contained Web Components
运行应用的命令: protected String doInBackground(String... params) {
try {
Connection con = connectionClass.CONN();
if (con == null) {
z = "Error in connection with SQL server";
} else {
doerTicket = setingPreferences.getString("doerTicket", "");
CallableStatement cs = null;
String query = "exec [file].[usp_getParts] \n@p_ItemNumber = ?,\n@p_DoerTicket = ?,\n@p_CarItemNumber = ?;
cs = con.prepareCall(query);
cs.setString(1, Cardnumber);//edittext(@p_ItemNumber)
cs.setString(2, doerTicket);
cs.setString(3, Carcode);//edittext(@p_CarItemNumber)
ResultSet rs = cs.executeQuery();
while (rs.next()) {
}
} catch (Exception ex) {
z = "Exceptions";
}
return z;
}
}
,
编辑将端口添加到命令后:
此外,它正在使用端口8443。
答案 0 :(得分:0)
我使用以下命令解决了同样的问题
openssl pkcs12 -export -in f8f628911xyzc.crt -inkey mydomain.com.key -certfile gd_bundle-g2-g1.crt -out mydomain.p12