mirror of
https://github.com/certimate-go/certimate.git
synced 2026-04-26 05:05:56 +03:00
[GH-ISSUE #659] webhook是否可以支持header请求,以及增加jks等文件的上传 #443
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#443
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 @zhushizhan on GitHub (May 5, 2025).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/659
功能描述 / Description
我想的是实现一个可以将申请的证书只要有接口就可以上传到任意地方的功能
请求动机 / Motivation
我看了目前的webhook,只有请求体,没办法定义请求头,如果存在需要请求头授权的接口,将无法正常进行上传。
而且不支持上传文件,我所遇到的问题是,一个内网穿透的工具,所需要的证书是jks的格式,所以我发现通过当前webhook的功能实现不了我想要的功能
其他 / Miscellaneous
No response
贡献 / Contribution
@fudiwei commented on GitHub (May 5, 2025):
duplicate #473
@fudiwei commented on GitHub (May 5, 2025):
即便允许自定义请求体,你想要的文件上传也无法支持。你可以自行写一个 HTTP 服务作为 Webhook 中转。
@zhushizhan commented on GitHub (May 6, 2025):
这个我不是太明白,如果不集成到你们程序中,便捷也就无从谈起。
其实我有代替方案,可以先ssh或者本地部署方式传到一个位置,然后再执行bash,通过curl上传到指定位置,但毕竟不如你们实现来的便捷
我还有一个问题,能否不通过工作流申请到证书,毕竟目前的工作流封闭性太强了,一点介入空间都没有,而且日志有点笼统,我在使用腾讯云CDN方式获取证书的时候,好像无法将解析记录写到腾讯云解析记录里面,因为腾讯云好像不允许主机记录里面有后缀为.的,比如 _acem_xxx. ,最后一位是点的话,就无法写入,就造成了acme在获取解析记录的时候,无法正常拿到记录,也就无法下发证书
开始
[2025-05-05 22:01:49]
ready to start ...
申请证书
[2025-05-05 22:01:49]
ready to apply ...
[2025-05-05 22:02:16]
failed to apply
[2025-05-05 22:02:16]
error: one or more domains had a problem: [..com] [..com] acme: error presenting token: tencentcloud: failed to get hosted zone: could not find zone: [fqdn=_acme-challenge..com.] could not find the start of authority for '_acme-challenge..com.' [question='cc. IN SOA', code=NOERROR]
@zhushizhan commented on GitHub (May 6, 2025):
我咨询过腾讯客服,以及在阿里云上操作过,通常acme下发的是 _acme_xxx_xxx.com. 这种DNS验证的主机记录,而他们填入的时候则是不允许最后一位有.,所以程序里拿到的时候会处理吗?我是新创建的api调用的时候是这样的