OpenWhisk "action invoke" 返回签名问题
OpenWhisk "action invoke" returning a issue with signature
我通过 helm 安装有 OpenWhisk 运行 本地(minikube):
helm install openwhisk-deploy-kube/helm/openwhisk \
-n openwhisk \
--namespace openwhisk \
--set whisk.ingress.apiHostName="$(minikube ip)"
当尝试使用指向 minikube ip
:
的环境 CLOUDANT_HOST
绑定 cloudant (CouchDB) 时
wsk package bind /whisk.system/cloudant contactdb \
-p username $(CLOUDANT_USER) \
-p password $(CLOUDANT_PASS) \
-p host $(CLOUDANT_HOST) \
-p dbname contactdb
并将操作调用发送到 contactdb/write
:
wsk action invoke contactdb/write \
-b \
-p dbname contactdb \
-p doc '{"name":"Bruno Wego","email":"brunowego@gmail.com"}' \
-r \
-i
是return以下问题:
{
"error": {
"code": "UNABLE_TO_VERIFY_LEAF_SIGNATURE",
"description": "unable to verify the first certificate",
"errid": "request",
"message": "error happened in your connection",
"name": "Error",
"scope": "socket",
"stack": "Error: unable to verify the first certificate\n at Error (native)\n at TLSSocket.<anonymous> (_tls_wrap.js:1092:38)\n at emitNone (events.js:86:13)\n at TLSSocket.emit (events.js:185:7)\n at TLSSocket._finishInit (_tls_wrap.js:609:8)\n at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:439:38)",
"stacktrace": [
"Error: unable to verify the first certificate",
" at Error (native)",
" at TLSSocket.<anonymous> (_tls_wrap.js:1092:38)",
" at emitNone (events.js:86:13)",
" at TLSSocket.emit (events.js:185:7)",
" at TLSSocket._finishInit (_tls_wrap.js:609:8)",
" at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:439:38)"
]
}
}
我不知道在本地安装的 OpenWhisk 中指向 host
的地址。
完成 look here 后,我使用了 url 参数而不使用 ssl,它起作用了:
wsk package bind /whisk.system/cloudant contactdb \
-p url 'http://whisk_admin:some_passw0rd@openwhisk-couchdb.openwhisk.svc.cluster.local:5984' \
-p dbname contactdb \
-i \
-v
我通过 helm 安装有 OpenWhisk 运行 本地(minikube):
helm install openwhisk-deploy-kube/helm/openwhisk \
-n openwhisk \
--namespace openwhisk \
--set whisk.ingress.apiHostName="$(minikube ip)"
当尝试使用指向 minikube ip
:
CLOUDANT_HOST
绑定 cloudant (CouchDB) 时
wsk package bind /whisk.system/cloudant contactdb \
-p username $(CLOUDANT_USER) \
-p password $(CLOUDANT_PASS) \
-p host $(CLOUDANT_HOST) \
-p dbname contactdb
并将操作调用发送到 contactdb/write
:
wsk action invoke contactdb/write \
-b \
-p dbname contactdb \
-p doc '{"name":"Bruno Wego","email":"brunowego@gmail.com"}' \
-r \
-i
是return以下问题:
{
"error": {
"code": "UNABLE_TO_VERIFY_LEAF_SIGNATURE",
"description": "unable to verify the first certificate",
"errid": "request",
"message": "error happened in your connection",
"name": "Error",
"scope": "socket",
"stack": "Error: unable to verify the first certificate\n at Error (native)\n at TLSSocket.<anonymous> (_tls_wrap.js:1092:38)\n at emitNone (events.js:86:13)\n at TLSSocket.emit (events.js:185:7)\n at TLSSocket._finishInit (_tls_wrap.js:609:8)\n at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:439:38)",
"stacktrace": [
"Error: unable to verify the first certificate",
" at Error (native)",
" at TLSSocket.<anonymous> (_tls_wrap.js:1092:38)",
" at emitNone (events.js:86:13)",
" at TLSSocket.emit (events.js:185:7)",
" at TLSSocket._finishInit (_tls_wrap.js:609:8)",
" at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:439:38)"
]
}
}
我不知道在本地安装的 OpenWhisk 中指向 host
的地址。
完成 look here 后,我使用了 url 参数而不使用 ssl,它起作用了:
wsk package bind /whisk.system/cloudant contactdb \
-p url 'http://whisk_admin:some_passw0rd@openwhisk-couchdb.openwhisk.svc.cluster.local:5984' \
-p dbname contactdb \
-i \
-v