Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

上传的证书内容不符合CA证书的标准格式,请您核对证书类型是否有误 #8

Open
peihuanhuan opened this issue Mar 3, 2024 · 4 comments

Comments

@peihuanhuan
Copy link

peihuanhuan commented Mar 3, 2024

实例化一个ssl_client成功
获取ssl证书列表成功
[TencentCloudSDKException] code:FailedOperation.CertificateCaError message:温馨提示:上传的证书内容不符合CA证书的标准格式,请您核对证书类型是否有误 requestId:6eb75f10-6f8d-4c80-abe7
获取新证书id失败

你好,上传证书的时候报错,但把生成的证书在控制台里直接上传是能 work 的

@miaomiaocatmsg
Copy link

[TencentCloudSDKException] code:FailedOperation.CdnConfigError message:域名加速服务已关闭,请先前往域名管理启动域名 requestId:fe6a1fd7-e801-4da6-90d8-71690ead18c7
为CDN设置SSL证书Eq4hcD10出错

离谱 0 0

@Nekotora
Copy link

也遇到了相同的问题,我的解决方式是,
在main.py的17行,将 "type": "CA" 修改为 "type": "SVR" 就正常了,
看起来证书类型写错了,签发出来的证书确实是SVR不是CA,
不知道和 acme.sh 前段时间改用 zeroSSL 作为默认证书提供商有没有什么关系。
相关文档:https://cloud.tencent.com/document/product/400/41665

I encountered the same issue.
My solution was to change "type": "CA" to "type": "SVR" on line 17 of main.py, and then everything worked fine.
It looks like the certificate type was incorrectly specified; the issued certificate is indeed SVR, not CA.
I'm not sure if this is related to acme.sh switching to ZeroSSL.
Relevant documentation: https://cloud.tencent.com/document/product/400/41665

@zfb132
Copy link
Owner

zfb132 commented Jun 14, 2024

qcloud-ssl-cdn/main.py

Lines 5 to 16 in 846df23

def run_config_ssl(id, key, cer_file, key_file):
'''上传SSl证书到腾讯云SSL证书管理,返回新证书的id
'''
cert_info = {
# Let's Encrypt 是通过中级 CA 机构颁发的证书,拿到的证书文件包含
# whuzfb.cn.cer ca.cer
# 需要人为地将服务器证书与中间证书拼接在一起(acme.sh已经进行拼接)
# fullchain.cer
"cer": tools.read_file(cer_file),
"key": tools.read_file(key_file),
"type": "SVR"
}

@Nekotora 在使用前注意拉取最新代码,此问题应该在2023-12-01已被修复

Fix "code:InvalidParameter.WithCaAttr" error.

@Nekotora
Copy link

@Nekotora 在使用前注意拉取最新代码,此问题应该在2023-12-01已被修复

Fix "code:InvalidParameter.WithCaAttr" error.

😮啊抱歉,我一直在使用一个很久之前fork下来的旧版本,
最近部署新的时候才发现问题,原来已经修掉了,
非常方便的工具,感谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants