[error] https://servicewechat.com/wxa/ci/getrandstr Error: unable to get local issuer certificate
[error] 20001 Error: unable to get local issuer certificate
[error] get wx9575069441699*** project attr fail Error: Error: unable to get local issuer certificate
在实现miniprogram-ci 功能时出现此问题
https://developers.weixin.qq.com/miniprogram/dev/devtools/ci.html
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
const ci = require('miniprogram-ci')
;(async () => {
const project = new ci.Project({
appid: 'wxsomeappid',
type: 'miniProgram',
projectPath: 'the/project/path',
privateKeyPath: 'the/path/to/privatekey',
ignores: ['node_modules/**/*'],
})
const uploadResult = await ci.upload({
project,
version: '1.1.1',
desc: 'hello',
setting: {
es6: true,
},
onProgressUpdate: console.log,
})
console.log(uploadResult)
})()
[error] https://servicewechat.com/wxa/ci/getrandstr Error: unable to get local issuer certificate
[error] 20001 Error: unable to get local issuer certificate
#upload
miniprogram-ci \
upload \
--pp ./demo-proj/ \
--pkp ./private.YOUR_APPID.key \
--appid YOUR_APPID \
--uv PACKAGE_VERSION \
-r 1 \
--enable-es6 true \
是否通过配置 证书 来解决? 如果是,应该从哪里下载,方便提供对应的solution guide吗?谢谢~