百搜论坛
 
收藏文章 楼主
关于宝塔上部署证书的说明
版块:安装使用   类型:普通   作者:haokfw   查看:92   回复:0   获赞:0   时间:2020-09-07 18:10:54
<table id="pid2291" class="plhin" summary="pid2291" cellspacing="0" cellpadding="0" style="overflow-wrap: break-word; empty-cells: show; table-layout: fixed; width: 858.4px; color: rgb(51, 51, 51); font-family: arial, &quot;Microsoft Yahei&quot;, &quot;Hiragino Sans GB&quot;, sans-serif; font-size: 14px;"><tbody style="overflow-wrap: break-word;"><tr style="overflow-wrap: break-word;"><td class="plc" style="overflow-wrap: break-word; vertical-align: top; width: 858.4px;"><p class="post_con" style="overflow-wrap: break-word; position: relative;"><p class="pct" style="overflow-wrap: break-word; padding-bottom: 0px;"><p class="pcb" style="overflow-wrap: break-word; clear: left; margin-right: 0px;"><p class="t_fsz" style="overflow-wrap: break-word; min-height: auto; line-height: 26px;"><table cellspacing="0" cellpadding="0" style="overflow-wrap: break-word; empty-cells: show; table-layout: fixed; width: 858.4px;"><tbody style="overflow-wrap: break-word;"><tr style="overflow-wrap: break-word;"><td class="t_f" id="postmessage_2291" style="overflow-wrap: break-word; font-size: 16px;"><span style="overflow-wrap: break-word; font-weight: 700;">证书文件目录</span><br style="overflow-wrap: break-word;">大部分免费证书(指阿里/腾讯申请的),都会有以下四个文件夹。面板只需要用到nginx或apache的,其他无需理会。<br style="overflow-wrap: break-word;"><img id="aimg_8051" aid="8051" src="uploadfiles/images/73/20200907/181052_G4EWN9.png" zoomfile="data/attachment/forum/201802/01/150011ppfcjxt35gn5mmn7.png" file="data/attachment/forum/201802/01/150011ppfcjxt35gn5mmn7.png" class="zoom" width="452" inpost="1" lazyloaded="true" height="100" initialized="true" style="overflow-wrap: break-word; cursor: pointer;">&nbsp;<br style="overflow-wrap: break-word;"><br style="overflow-wrap: break-word;"><span style="overflow-wrap: break-word; font-weight: 700;">Nginx环境配置证书方法(证书目录只有两个文件的):</span><br style="overflow-wrap: break-word;">进入nginx(证书)目录,有以下<font color="#ff0000" style="overflow-wrap: break-word;">两个文件</font><br style="overflow-wrap: break-word;">其中<font color="#ff0000" style="overflow-wrap: break-word;">红框.key后缀</font>的是服务器私钥,填入面板证书的<font color="#ff0000" style="overflow-wrap: break-word;">左边红框</font>中(用文本编辑器完整复制粘贴进去)<br style="overflow-wrap: break-word;"><font color="#4169e1" style="overflow-wrap: break-word;">蓝框.crt后缀</font>的是证书(也可能是pem后缀),填入面板证书的<font color="#4169e1" style="overflow-wrap: break-word;">右边蓝色框</font>中(用文本编辑器完整复制粘贴进去)<br style="overflow-wrap: break-word;"><br style="overflow-wrap: break-word;"><img id="aimg_8052" aid="8052" src="uploadfiles/images/73/20200907/181052_1aspBY.png" zoomfile="data/attachment/forum/201802/01/151019sw84af6sk65j68ww.png" file="data/attachment/forum/201802/01/151019sw84af6sk65j68ww.png" class="zoom" width="593" inpost="1" lazyloaded="true" _load="1" style="overflow-wrap: break-word; cursor: pointer;">&nbsp;<br style="overflow-wrap: break-word;"><br style="overflow-wrap: break-word;"><img id="aimg_8053" aid="8053" src="uploadfiles/images/73/20200907/181052_nUim71.png" zoomfile="data/attachment/forum/201802/01/151030rddvmgmgygg653v3.png" file="data/attachment/forum/201802/01/151030rddvmgmgygg653v3.png" class="zoom" width="640" inpost="1" lazyloaded="true" _load="1" initialized="true" style="overflow-wrap: break-word; cursor: pointer;">&nbsp;<br style="overflow-wrap: break-word;"><br style="overflow-wrap: break-word;">然后保存即可。<br style="overflow-wrap: break-word;"><br style="overflow-wrap: break-word;"><span style="overflow-wrap: break-word; font-weight: 700;">Apache环境配置证书方法(</span><span style="overflow-wrap: break-word; font-weight: 700;">证书目录有三个文件的</span><span style="overflow-wrap: break-word; font-weight: 700;">):</span><br style="overflow-wrap: break-word;">进入apache(证书)目录,有以下<font color="#ff0000" style="overflow-wrap: break-word;">三个文件</font><br style="overflow-wrap: break-word;">其中<font color="#ff0000" style="overflow-wrap: break-word;">红框.key后缀</font>的是服务器私钥,填入面板证书的<font color="#ff0000" style="overflow-wrap: break-word;">左边红框</font>中(用文本编辑器完整复制粘贴进去)<br style="overflow-wrap: break-word;"><font color="#4169e1" style="overflow-wrap: break-word;">蓝框域名证书</font><font color="#800080" style="overflow-wrap: break-word;">紫框root根证书</font><font color="#4169e1" style="overflow-wrap: break-word;">两张证书</font>则需要<font color="#ff0000" style="overflow-wrap: break-word;">合并</font>填入面板证书的<font color="#4169e1" style="overflow-wrap: break-word;">右边蓝框</font>中(用文本编辑器完整复制粘贴进去)<br style="overflow-wrap: break-word;">若不合并只填蓝框域名证书手机访问就会报缺失证书链/不安全等同时<br style="overflow-wrap: break-word;">若顺序不正确会导致apache无法正常启动<br style="overflow-wrap: break-word;"><img id="aimg_8056" aid="8056" src="uploadfiles/images/73/20200907/181053_OBsxAb.png" zoomfile="data/attachment/forum/201802/01/152708shgvpsib57aip5k6.png" file="data/attachment/forum/201802/01/152708shgvpsib57aip5k6.png" class="zoom" width="614" inpost="1" lazyloaded="true" _load="1" style="overflow-wrap: break-word; cursor: pointer;">&nbsp;<br style="overflow-wrap: break-word;"><img id="aimg_8055" aid="8055" src="uploadfiles/images/73/20200907/181053_VecidG.png" zoomfile="data/attachment/forum/201802/01/152337hn4uegwq7yoi9wv4.png" file="data/attachment/forum/201802/01/152337hn4uegwq7yoi9wv4.png" class="zoom" width="640" inpost="1" lazyloaded="true" _load="1" initialized="true" style="overflow-wrap: break-word; cursor: pointer;">&nbsp;<br style="overflow-wrap: break-word;"><br style="overflow-wrap: break-word;"><span style="overflow-wrap: break-word; font-weight: 700;">证书合并步骤:</span><br style="overflow-wrap: break-word;">以下是文本编辑器里的截图,<font color="#4169e1" style="overflow-wrap: break-word;">蓝色域名证书</font>放上面的<font color="#4169e1" style="overflow-wrap: break-word;">蓝框</font>中<font color="#800080" style="overflow-wrap: break-word;">紫框root根证书</font>放下面的<font color="#800080" style="overflow-wrap: break-word;">紫框</font>中(注意完整)<br style="overflow-wrap: break-word;"><img id="aimg_8058" aid="8058" src="uploadfiles/images/73/20200907/181054_he9i4v.png" zoomfile="data/attachment/forum/201802/01/153349no6jjloley556bl5.png" file="data/attachment/forum/201802/01/153349no6jjloley556bl5.png" class="zoom" width="547" inpost="1" lazyloaded="true" _load="1" initialized="true" style="overflow-wrap: break-word; cursor: pointer;">&nbsp;<br style="overflow-wrap: break-word;"><br style="overflow-wrap: break-word;">保存即可。<br style="overflow-wrap: break-word;"><br style="overflow-wrap: break-word;">需要注意的是,开启ssl之后,其他未开启ssl的站点用https访问会自动访问到已部署好ssl的站点。<br style="overflow-wrap: break-word;">若安全组未放行443(ssl)端口,会造成无法https访问。<br style="overflow-wrap: break-word;">大部分免费CDN不支持SSL,若有用CDN无法正常访问的,可以尝试关闭访问。<br style="overflow-wrap: break-word;">若要开启强制https,请确保自己站点没有做其他301跳转(伪静态/js)。<br style="overflow-wrap: break-word;"></td></tr></tbody></table></p></p></p></p></td></tr></tbody></table>

 
百搜论坛
回复列表
默认   热门   正序   倒序

回复:关于宝塔上部署证书的说明

暂无用户组
退出
等级:0级
金钱:
游客:
百搜论坛
百搜论坛
百搜论坛
百搜论坛
百搜论坛
百搜论坛
百搜论坛
百搜论坛
百搜论坛

Powered by 码农素材

©2015 - 2020 百搜论坛 版权所有

联系站长 友链申请桂ICP备19000949号-1

您的IP:3.237.66.86,2020-12-01 09:38:42,Processed in 0.01546 second(s).

百搜论坛欢迎您的加入!
头像

用户名:

粉丝数:

签名:

资料 关注 好友 消息
已有0次打赏
(0) 分享
分享
取消
免责声明
1、本站资源,均来自网络,版权归原作者,所有资源和文章仅限用于学习和研究目的 。
2、不得用于商业或非法用途,否则,一切责任由该用户承担 !
如果觉得本文还不错请点个赞或者打赏点轻币哦~
拒绝伸手党,拿走请回复,尊重楼主,尊重你我他~

侵权删除请致信 E-Mail:210676369@qq.com