[GH-ISSUE #1190] [Bug] 部署到宝塔报错tls: handshake failure #807

Open
opened 2026-03-03 01:06:09 +03:00 by kerem · 1 comment
Owner

Originally created by @rong6 on GitHub (Feb 11, 2026).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/1190

Release Version / 软件版本

v0.4.17

Description / 缺陷描述

当部署目标为宝塔面板且面板地址为HTTPS(自签证书)时,报错:

# 宝塔面板网站类型为PHP时
failed to execute sdk request 'bt.SiteSetSSL': sdkerr: failed to send request: Post "https://<IP>:13319/site?action=SetSSL": remote error: tls: handshake failure
# 宝塔面板网站类型为任意时
failed to execute sdk request 'bt.SSLCertSaveCert': sdkerr: failed to send request: Post "https://<IP>:13319/ssl/cert/save_cert": remote error: tls: handshake failure

在授权凭据中,忽略 SSL/TLS 证书错误已设为开启。

Steps to reproduce / 复现步骤

如图所示配置:
Image

Image

Logs / 日志

response:
{}
[2026-02-11 20:31:29]
could not deploy certificate
[2026-02-11 20:31:29]
failed to execute sdk request 'bt.SiteSetSSL': sdkerr: failed to send request: Post "https://<IP>:13319/site?action=SetSSL": remote error: tls: handshake failure

Miscellaneous / 其他

No response

Contribution / 贡献代码

  • I am interested in contributing a PR for this! / 我乐意为此提交代码并发起 PR!
Originally created by @rong6 on GitHub (Feb 11, 2026). Original GitHub issue: https://github.com/certimate-go/certimate/issues/1190 ### Release Version / 软件版本 v0.4.17 ### Description / 缺陷描述 当部署目标为宝塔面板且面板地址为HTTPS(自签证书)时,报错: ``` # 宝塔面板网站类型为PHP时 failed to execute sdk request 'bt.SiteSetSSL': sdkerr: failed to send request: Post "https://<IP>:13319/site?action=SetSSL": remote error: tls: handshake failure ``` ``` # 宝塔面板网站类型为任意时 failed to execute sdk request 'bt.SSLCertSaveCert': sdkerr: failed to send request: Post "https://<IP>:13319/ssl/cert/save_cert": remote error: tls: handshake failure ``` 在授权凭据中,忽略 SSL/TLS 证书错误已设为开启。 ### Steps to reproduce / 复现步骤 如图所示配置: <img width="1851" height="906" alt="Image" src="https://github.com/user-attachments/assets/607480bd-e8af-46c8-abea-3425ff0d45e7" /> <img width="1851" height="906" alt="Image" src="https://github.com/user-attachments/assets/608c1f7a-5e88-4453-9f9a-c5d365665ede" /> ### Logs / 日志 <details> ```console response: {} [2026-02-11 20:31:29] could not deploy certificate [2026-02-11 20:31:29] failed to execute sdk request 'bt.SiteSetSSL': sdkerr: failed to send request: Post "https://<IP>:13319/site?action=SetSSL": remote error: tls: handshake failure ``` </details> ### Miscellaneous / 其他 _No response_ ### Contribution / 贡献代码 - [ ] I am interested in contributing a PR for this! / 我乐意为此提交代码并发起 PR!
Author
Owner

@fudiwei commented on GitHub (Feb 26, 2026):

你是在宝塔面板设置里使用了自签证书、还是宝塔前面套了反代使用了自签证书?

<!-- gh-comment-id:3964658670 --> @fudiwei commented on GitHub (Feb 26, 2026): 你是在宝塔面板设置里使用了自签证书、还是宝塔前面套了反代使用了自签证书?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/certimate#807
No description provided.