我正在使用 Eclipse (Luna) 和 RunJettyRun 在 Windows 7 上开发 Spring MVC 网站。我想测试它是否适用于某些页面或目录的 SSL。
我在 C:\Users\Me 中有一个自分配的 SSL 证书(文件:.keystore),默认密码为“changeit”。
在我的 Spring 安全上下文中,我有以下内容:
<http auto-config="false" use-expressions="true" request-matcher="regex" >
....
<intercept-url pattern="^\/login$" requires-channel="https" />
<port-mappings>
<port-mapping http="8080" https="8443"/>
</port-mappings>
</http>
当我单击http://localhost:8080/login时,我被重定向到https://localhost:8443/login(按预期工作)并且我在 Chrome 中收到以下消息:
This webpage is not available
这是可以理解的,因为我没有为端口 8443 设置任何东西。
在我的情况下,如何为端口 8443 设置 SSL?谷歌搜索了很多,但我发现主要是关于独立 Jetty 的设置。
感谢您的任何指示和输入!