[英]How do I import my VPS SSL certificate into my jetty keystore using keytools?
I have written a webapp in B4J, which is a Basic language IDE that compiles the app to an executable java jar.我用 B4J 编写了一个 webapp,它是一个基本语言 IDE,可将应用程序编译为可执行的 java jar。 My webapp works fine on http but I now need to embed it into a WordPress page, which I do using an iframe plugin for WordPress.
我的 web 应用程序在 http 上运行良好,但我现在需要将它嵌入到 WordPress 页面中,我使用 WordPress 的 iframe 插件。
The WordPress site runs on http s so I therefore need to have my webapp run on https.在http S上的WordPress站点运行,从而因此,我需要对我的HTTPS Web应用程序运行。 I've searched the B4J forum and successfully converted the webapp so that the embedded jetty server starts up and connects on https but I am now in the world of SSL, which I have never had to deal with before.
我搜索了 B4J 论坛并成功转换了 webapp,以便嵌入式码头服务器启动并通过 https 连接,但我现在处于 SSL 的世界,我以前从未处理过这种情况。
I've followed various howto's and tutorials and successfully created a self-signed SSL cert using 'keytool' and that has allowed me to test and prove that my webapp is running under https.我遵循了各种操作方法和教程,并使用“keytool”成功创建了一个自签名 SSL 证书,这使我能够测试并证明我的 web 应用程序是在 https 下运行的。 However the time has come for me upgrade the SSL cert to 'proper' certification so that the webapp can run without the browser warnings caused by the self-signed cert.
然而,现在是我将 SSL 证书升级为“正确”认证的时候了,这样 webapp 就可以运行,而不会出现由自签名证书引起的浏览器警告。
So this is where my SSL ability becomes super-thin... My VPS host is HostGator (HG) and the VPS plan comes with a free SSL cert that is periodically renewed.所以这就是我的 SSL 能力变得超薄的地方...我的 VPS 主机是 HostGator (HG) 并且 VPS 计划附带一个定期更新的免费 SSL 证书。 The HG cert covers the domain that both the WordPress site and the webapp will run on.
HG 证书涵盖 WordPress 站点和 web 应用程序将在其上运行的域。 I have asked HG Support whether their free cert would cover my webppp and they seem to think that it would but I need to make it available to the webapp when the java jar starts up the Jetty server.
我已经问过 HG Support 他们的免费证书是否会涵盖我的 webppp,他们似乎认为会,但我需要在 java jar 启动 Jetty 服务器时将其提供给 webapp。 To that end I would like to try and import the HG cert into my Jetty keystore file and see it it will work.
为此,我想尝试将 HG 证书导入到我的 Jetty 密钥库文件中,看看它会起作用。 My problem is that I am unsure about:
我的问题是我不确定:
I have read various threads both on B4J forum and StackOverflow but I'm not confident at this point that I know what I'm doing.我已经阅读了 B4J 论坛和 StackOverflow 上的各种主题,但此时我对自己知道自己在做什么没有信心。 I would greatly appreciate any assistance given and can supply the following information to help.
我将不胜感激所提供的任何帮助,并可以提供以下信息来提供帮助。
Having search some Linux forums I am pretty sure that the HG SSL cert is in a file located in:搜索了一些 Linux 论坛后,我很确定 HG SSL 证书位于以下位置的文件中:
So...my question is:所以......我的问题是:
Solution:解决方案:
Answer added on behalf of OP代表 OP 添加的答案
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.