做网站申请域名大概花费多少,wordpress xy 变装,1024永久免费拒绝收费,宝山网站建设哪家好文章目录1. 证书下载2. 证书配置2. 效果验证项目用的wildfly-10.1.0.Final。需要用到SSL证书#xff0c;把部署过程记录下来#xff0c;以供参考。1. 证书下载
本文的证书申请都来自阿里云。 1.首先把你的域名做好解析。 2.从阿里云上下载申请的SSL证书#xff0c;类型选择…
文章目录1. 证书下载2. 证书配置2. 效果验证项目用的wildfly-10.1.0.Final。需要用到SSL证书把部署过程记录下来以供参考。1. 证书下载
本文的证书申请都来自阿里云。 1.首先把你的域名做好解析。 2.从阿里云上下载申请的SSL证书类型选择JKS。 下载后的文件夹打开可以看到下面两个文件一个是证书后缀是jks。另一个是密码文件。
2. 证书配置
我们打开wildfly/standalone/configuration 新建一个文件夹命名为cert。把刚才下载的后缀为jks的证书放进去。 然后打开wildfly/standalone/configuration/standalone.xml。 搜索 ” “。在这中间添加一个 。
参考:
security-realm nameSslRealmserver-identitiessslkeystore path./cert/xxxx.xxxxx.xxxx.jks relative-tojboss.server.config.dir keystore-passwordYn48h0Ej//ssl/server-identities
/security-realm其中xxx是下载下来后缀为jks的前面的名字有的带数字。keystore-password后面是你下载文件中的密码。
然后继续搜索类似下面代码
https-listener namehttps socket-bindinghttps把下面的security-realm设置为SslRealm。参考 server namedefault-serverhttp-listener namedefault socket-bindinghttp redirect-sockethttps enable-http2true/https-listener namehttps socket-bindinghttps security-realmSslRealm enable-http2true/host namedefault-host aliaslocalhostlocation name/upload handlerupload/location name/ueditor handlerueditor/filter-ref namex-powered-by-header/http-invoker security-realmApplicationRealm//host/server然后重启wildfly。
2. 效果验证
访问域名或者https://localhost:8443。如果网址旁边是绿色的说明配置成功。 注如果存在其他端口映射关系请提前配置好端口映射。