gpt4 book ai didi

ssl - 如何给Kong添加证书。发出 https 请求

转载 作者:太空宇宙 更新时间:2023-11-03 13:20:22 25 4
gpt4 key购买 nike

我正在尝试使用此文档添加证书 kong docs

但我不知道如何生成这些“证书”和“ key ”pem 文件。

我尝试使用 puttygen 生成的公钥和私钥,但没有成功。

示例将非常有用

{
"message": "3 schema violations (cert: invalid certificate: x509.cert.new: asn1_lib.c:101:error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long; key: invalid key: pkey.new: tasn_dec.c:1130:error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag; tags: expected a set)",
"name": "schema violation",
"fields": {
"tags": "expected a set",
"cert": "invalid certificate: x509.cert.new: asn1_lib.c:101:error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long",
"key": "invalid key: pkey.new: tasn_dec.c:1130:error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag"
},
"code": 2
}

这是我收到的错误

最佳答案

试试这个命令


curl -i -X 'POST' http://localhost:8001/certificates \
-F 'cert= Content PEM archive ' \
-F 'key= Content key archive without password ' \
-F 'snis=subdomain.mydomain.com'

关于ssl - 如何给Kong添加证书。发出 https 请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55951683/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com