当前位置:论坛首页 > Linux面板 > 求助

【待反馈】安装ssl证书没有生效

发表在 Linux面板2022-7-2 18:41 [复制链接] 8 12951

安装ssl证书后一直没有生效,服务器端口已经开了,安全端口也开了,求助!!!

下载.png
下载 (1).png
下载 (2).png
使用道具 举报 只看该作者 回复
发表于 2022-7-2 19:13:19 | 显示全部楼层
您好,将强制HTTPS开启,然后重新访问看下是否正常
使用道具 举报 回复 支持 反对
发表于 2022-7-2 19:35:25 | 显示全部楼层
谢花郎 发表于 2022-7-2 19:13
您好,将强制HTTPS开启,然后重新访问看下是否正常

还是不行,显示连接超时;
去站长工具扫描端口443还是关闭状态,可是按照上图我已经开启了才对。
使用道具 举报 回复 支持 反对
发表于 2022-7-2 19:58:48 | 显示全部楼层
llight 发表于 2022-7-2 19:35
还是不行,显示连接超时;
去站长工具扫描端口443还是关闭状态,可是按照上图我已经开启了才对。
...

命令行执行下面命令看下

  1. firewall-cmd --list-all
  2. iptables -L -n
复制代码
使用道具 举报 回复 支持 反对
发表于 2022-7-2 20:00:39 | 显示全部楼层
谢花郎 发表于 2022-7-2 19:58
命令行执行下面命令看下

root@localhost:~# firewall-cmd --list-all
public
  target: default
  icmp-block-inversion: no
  interfaces:
  sources:
  services: dhcpv6-client ssh
  ports:
  protocols:
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:

root@localhost:~# iptables -L -n
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0            ctstate RELATED,ESTABLISHED,DNAT
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           
INPUT_direct  all  --  0.0.0.0/0            0.0.0.0/0           
INPUT_ZONES  all  --  0.0.0.0/0            0.0.0.0/0           
DROP       all  --  0.0.0.0/0            0.0.0.0/0            ctstate INVALID
REJECT     all  --  0.0.0.0/0            0.0.0.0/0            reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0            ctstate RELATED,ESTABLISHED,DNAT
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           
FORWARD_direct  all  --  0.0.0.0/0            0.0.0.0/0           
FORWARD_IN_ZONES  all  --  0.0.0.0/0            0.0.0.0/0           
FORWARD_OUT_ZONES  all  --  0.0.0.0/0            0.0.0.0/0           
DROP       all  --  0.0.0.0/0            0.0.0.0/0            ctstate INVALID
REJECT     all  --  0.0.0.0/0            0.0.0.0/0            reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           
OUTPUT_direct  all  --  0.0.0.0/0            0.0.0.0/0           

Chain FORWARD_IN_ZONES (1 references)
target     prot opt source               destination         
FWDI_public  all  --  0.0.0.0/0            0.0.0.0/0           [goto]

Chain FORWARD_OUT_ZONES (1 references)
target     prot opt source               destination         
FWDO_public  all  --  0.0.0.0/0            0.0.0.0/0           [goto]

Chain FORWARD_direct (1 references)
target     prot opt source               destination         

Chain FWDI_public (1 references)
target     prot opt source               destination         
FWDI_public_pre  all  --  0.0.0.0/0            0.0.0.0/0           
FWDI_public_log  all  --  0.0.0.0/0            0.0.0.0/0           
FWDI_public_deny  all  --  0.0.0.0/0            0.0.0.0/0           
FWDI_public_allow  all  --  0.0.0.0/0            0.0.0.0/0           
FWDI_public_post  all  --  0.0.0.0/0            0.0.0.0/0           
ACCEPT     icmp --  0.0.0.0/0            0.0.0.0/0           

Chain FWDI_public_allow (1 references)
target     prot opt source               destination         

Chain FWDI_public_deny (1 references)
target     prot opt source               destination         

Chain FWDI_public_log (1 references)
target     prot opt source               destination         

Chain FWDI_public_post (1 references)
target     prot opt source               destination         

Chain FWDI_public_pre (1 references)
target     prot opt source               destination         

Chain FWDO_public (1 references)
target     prot opt source               destination         
FWDO_public_pre  all  --  0.0.0.0/0            0.0.0.0/0           
FWDO_public_log  all  --  0.0.0.0/0            0.0.0.0/0           
FWDO_public_deny  all  --  0.0.0.0/0            0.0.0.0/0           
FWDO_public_allow  all  --  0.0.0.0/0            0.0.0.0/0           
FWDO_public_post  all  --  0.0.0.0/0            0.0.0.0/0           

Chain FWDO_public_allow (1 references)
target     prot opt source               destination         

Chain FWDO_public_deny (1 references)
target     prot opt source               destination         

Chain FWDO_public_log (1 references)
target     prot opt source               destination         

Chain FWDO_public_post (1 references)
target     prot opt source               destination         

Chain FWDO_public_pre (1 references)
target     prot opt source               destination         

Chain INPUT_ZONES (1 references)
target     prot opt source               destination         
IN_public  all  --  0.0.0.0/0            0.0.0.0/0           [goto]

Chain INPUT_direct (1 references)
target     prot opt source               destination         

Chain IN_public (1 references)
target     prot opt source               destination         
IN_public_pre  all  --  0.0.0.0/0            0.0.0.0/0           
IN_public_log  all  --  0.0.0.0/0            0.0.0.0/0           
IN_public_deny  all  --  0.0.0.0/0            0.0.0.0/0           
IN_public_allow  all  --  0.0.0.0/0            0.0.0.0/0           
IN_public_post  all  --  0.0.0.0/0            0.0.0.0/0           
ACCEPT     icmp --  0.0.0.0/0            0.0.0.0/0           

Chain IN_public_allow (1 references)
target     prot opt source               destination         
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:22 ctstate NEW,UNTRACKED

Chain IN_public_deny (1 references)
target     prot opt source               destination         

Chain IN_public_log (1 references)
target     prot opt source               destination         

Chain IN_public_post (1 references)
target     prot opt source               destination         

Chain IN_public_pre (1 references)
target     prot opt source               destination         

Chain OUTPUT_direct (1 references)
target     prot opt source               destination
使用道具 举报 回复 支持 反对
发表于 2022-7-2 20:03:04 | 显示全部楼层
llight 发表于 2022-7-2 20:00
root@localhost:~# firewall-cmd --list-all
public
  target: default

你系统防火墙都没有对应规则,手动加一下看看吧

  1. firewall-cmd --zone=public --add-port=443/tcp --permanent
  2. firewall-cmd --reload
复制代码
使用道具 举报 回复 支持 反对
发表于 2022-7-2 20:05:58 | 显示全部楼层
谢花郎 发表于 2022-7-2 20:03
你系统防火墙都没有对应规则,手动加一下看看吧

设置完,现在http也访问不了了,哭了
使用道具 举报 回复 支持 反对
发表于 2022-7-2 20:08:30 | 显示全部楼层
谢花郎 发表于 2022-7-2 20:03
你系统防火墙都没有对应规则,手动加一下看看吧
  1. systemctl stop firewalld
复制代码
只有执行这个之后,http才能访问
使用道具 举报 回复 支持 反对
发表于 2022-7-4 09:11:59 | 显示全部楼层
llight 发表于 2022-7-2 20:08
只有执行这个之后,http才能访问

那就说明您防火墙规则有问题,您那边要么就清除所有规则重新去访问
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表