mirror of
https://github.com/certimate-go/certimate.git
synced 2026-04-26 13:15:55 +03:00
[GH-ISSUE #270] [Feature] 支持部署到宝塔 #165
Labels
No labels
announcement
backlog
bug
declined
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
invalid
pull-request
question
stale
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/certimate#165
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rong6 on GitHub (Oct 27, 2024).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/270
功能描述
好久没看这个项目了,更新了挺多的,但天下没有完美的系统,还是有一些小瑕疵。
目前宝塔站点证书保存在
/www/server/panel/vhost/cert/<domain>,证书和私钥文件名分别为fullchain.pemprivkey.pem。而我每次申请证书必须手动输入该目录来推送部署,希望可以添加一个部署方式,根据域名自动生成证书、密钥保存路径。如有域名
a.com,在输入SSH信息之后无需手动输入证书、密钥保存路径,而是自动推送至/www/server/panel/vhost/cert/a.com/fullchain.pem和/www/server/panel/vhost/cert/a.com/privkey.pem,然后宝塔再手动启用证书即可。不知道宝塔有没有提供对应API,如果有,则可以不使用SSH直接推送,然后自动启用证书(翻了一下宝塔官网好像没有关于启用证书的API,手动抓了一下好像是
/site?action=SetSSL,但具体怎么使用就不清楚了)。动机
方便宝塔面板启用证书。
替代方案
嗯。。。手动输。。。
其他信息
无。
@fcwys commented on GitHub (Oct 29, 2024):
这个可以通过面板看接口,之前用python实现过通过接口设置SSL证书,我也提过对应ISSUE #88
@usual2970 commented on GitHub (Nov 2, 2024):
感谢反馈~ 后续没有这方面的迭代计划
欢迎提交 PR