将API与“Authentication”=“Certificate”一起使用时,出现以下关于PEM文件的错误
在Postman上:
PEM routines:OPENSSL_internal:NO_START_LINE在github节点js示例上:
node:_tls_common:155
context.setCert(cert);
^
Error: error:0909006C:PEM routines:get_name:no start line
at setCerts (node:_tls_common:155:13)
at Object.createSecureContext (node:_tls_common:210:7)
at Object.connect (node:_tls_wrap:1591:48)
at Agent.createConnection (node:https:129:22)
at Agent.createSocket (node:_http_agent:323:26)
at Agent.addRequest (node:_http_agent:274:10)
at new ClientRequest (node:_http_client:314:16)
at Object.request (node:https:313:10)
at Object.<anonymous> (/Users/kthxbai/Downloads/index.js:25:7)
at Module._compile (node:internal/modules/cjs/loader:1108:14) {
library: 'PEM routines',
function: 'get_name',
reason: 'no start line',
code: 'ERR_OSSL_PEM_NO_START_LINE'
}发布于 2021-06-16 16:53:48
我相信您的证书PEM文件中没有导致错误的以下行。
-开始证书
...<your cert>...-结束证书
https://stackoverflow.com/questions/67932865
复制相似问题