Skip to content

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

@rong6

Description

@rong6

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 / 日志

Details
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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions