我制作了一个我在Amazon EC2实例上托管的简单RESTlet。
我通过HTTP运行时可以达到此目的。
我需要将其转换为使用HTTPS,因此请遵循https://restlet.com/open-source/documentation/user-guide/2.2/core/security/https
处的RESTlet指南当我通过HTTP连接到它时,我收到此错误..
Restlet-917142466, READ: TLSv1.2 Alert, length = 2
Restlet-917142466, RECV TLSv1.2 ALERT: fatal, certificate_unknown
Restlet-917142466, fatal: engine already closed. Rethrowing javax.net.ssl.SSLException: Received fatal alert: certificate_unknown
Restlet-917142466, fatal: engine already closed. Rethrowing javax.net.ssl.SSLException: Received fatal alert: certificate_unknown
Restlet-917142466, called closeInbound()
Restlet-917142466, fatal: engine already closed. Rethrowing javax.net.ssl.SSLException: Inbound closed before receiving peer's close_notify: possible truncation attack?
Restlet-917142466, called closeOutbound()
Restlet-917142466, closeOutboundInternal()
Java代码非常简单,它反映了指南中的示例RESTlet服务器。
有关我可以尝试解决此问题的任何建议吗?