【发布时间】:2019-05-02 11:41:29
【问题描述】:
我正在尝试使用此文档 kong docs 添加证书
但我无法弄清楚如何生成这些“证书”和“密钥”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
}
这是我收到的错误
【问题讨论】:
-
证书和私钥是PEM格式的吗?
-
遇到同样的错误,有什么进展吗?
标签: ssl certificate x509 kong