** 网站可用cloudflare二级域名SLL证书开启https**
** 面板使用cloudflare二级域名SLL证书开启https失效**
[2023-09-12 00:00:00] [INFO] The scheduled certificate update task is currently in progress …
[2023-09-12 00:00:00] [INFO] The scheduled certificate update task has completed
[2023-09-12 00:00:00] [INFO] Website scheduled task in progress …
[2023-09-12 00:00:00] [INFO] Website scheduled task has completed
[2023-09-12 00:00:00] [INFO] download file from https://apps-assets.fit2cloud.com/stable/1panel.json.zip
[2023-09-12 00:00:02] [INFO] AppStore scheduled task has completed
这日志没啥意义,看不出啥问题。
需要的是面板设置页面再次开启 https,然后浏览器访问的日志
[2023-09-12 04:47:04] [INFO] init cache successfully
[2023-09-12 04:47:04] [INFO] init session successfully
[2023-09-12 04:47:08] [INFO] no need to sync
[2023-09-12 04:47:08] [INFO] server run success on 37854 with http
2023/09/12 04:47:08 6142 :37854
2023/09/12 23:24:19 6142 Received SIGTERM.
2023/09/12 23:24:19 6142 Waiting for connections to finish…
2023/09/12 23:24:19 6142 Serve() returning…
[2023-09-12 23:24:19] [ERROR] accept tcp [::]:37854: use of closed network connection
panic: accept tcp [::]:37854: use of closed network connection
goroutine 1 [running]:
github.com/1Panel-dev/1Panel/backend/server.Start()
github.com/1Panel-dev/1Panel/backend/server/server.go:59 +0x7a5
github.com/1Panel-dev/1Panel/cmd/server/cmd.glob..func7(0x6c385a0?, {0x25a7652?, 0x0?, 0x0?})
github.com/1Panel-dev/1Panel/cmd/server/cmd/root.go:22 +0x17
github.com/spf13/cobra.(*Command).execute(0x6c385a0, {0xc000050250, 0x0, 0x0})
github.com/spf13/cobra@v1.6.1/command.go:916 +0x862
github.com/spf13/cobra.(*Command).ExecuteC(0x6c385a0)
github.com/spf13/cobra@v1.6.1/command.go:1044 +0x3bd
github.com/spf13/cobra.(*Command).Execute(0x4069d9?)
github.com/spf13/cobra@v1.6.1/command.go:968 +0x19
main.main()
./main.go:23 +0x25
[2023-09-12 23:24:20] [INFO] init logger successfully
[2023-09-12 23:24:20] [INFO] init db successfully
[2023-09-12 23:24:20] [INFO] Migration run successfully
[2023-09-12 23:24:20] [INFO] init cache successfully
[2023-09-12 23:24:20] [INFO] init session successfully
[2023-09-12 23:24:23] [INFO] no need to sync
[2023-09-12 23:24:23] [INFO] server run success on 37854 with https
2023/09/12 23:24:24 http: TLS handshake error from 223.167.224.168:53171: remote error: tls: unknown certificate
我重新试了开启了一下, 日志有了
面板设置里面启用 https 使用这个证书,无法打开页面吗?
可以打开页面, 只不过会显示不安全
显示不安全是证书的问题
cloudflare的通用证书, 用在二级域名的网站没有问题, 不知道怎么用在二级域名的面板上就不行了, 我也怀疑是证书的问题, 另一台服务器用的国内的dnspod的证书没问题