You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've deployed citizen as a pod in kubernetes cluster and have set up a certificate signed by a public CA authority (not self-signed). Cert is stored in kubernetes secret (from tls.crt and tls.key).
Exposed port 3000 of the container with a kubernetes service to port 443 and setup an ingress resource with TLS.
When reaching out to my registry URL: "https://tfregistry.mydomain.com/health" I receive OK, so the setup seems to be correct. Also in google chrome no complains about SSL -- it is as expected.
However when trying to push to my registry (using binaries "citizen-win" from windows 10 machine or "citizen-linux" from redhat 7.5), I'm facing following issue
command: citizen module infra storage azurerm 1.0.0 --registry https://tfregistry.mydomain.com
response: **√ compress the terraform module × publish infra/storage/azurerm/1.0.0** RequestError: unable to verify the first certificate at ClientRequest.<anonymous> (C:\snapshot\citizen\node_modules\got\dist\source\core\index.js:956:111) at Object.onceWrapper (events.js:422:26) at ClientRequest.emit (events.js:327:22) at ClientRequest.<anonymous> (C:\snapshot\citizen\node_modules\@szmarczak\http-timer\dist\source\index.js:39:20) at TLSSocket.socketErrorListener (_http_client.js:467:9) at TLSSocket.emit (events.js:315:20) at emitErrorNT (internal/streams/destroy.js:100:8) at emitErrorCloseNT (internal/streams/destroy.js:68:3) at processTicksAndRejections (internal/process/task_queues.js:84:21) at TLSSocket.onConnectSecure (_tls_wrap.js:1496:34) at TLSSocket.emit (events.js:315:20) at TLSSocket._finishInit (_tls_wrap.js:931:8) at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:705:12) { code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE', timings: { start: 1645783553415, socket: 1645783553419, lookup: 1645783553501, connect: 1645783553565, secureConnect: undefined, upload: undefined, response: undefined, end: undefined, error: 1645783553605, abort: undefined, phases: { wait: 4, dns: 82, tcp: 64, tls: undefined, request: undefined, firstByte: undefined, download: undefined, total: 190 } } }
setting NODE_TLS_REJECT_UNAUTHORIZED to 0 (as env. var. both in the registry container or on the machine from where I'm pushing the module) did not resolve the problem. I've tried using images older than 0.4.0 (latest) - same issue.
Can you please help with troubleshooting?
The text was updated successfully, but these errors were encountered:
@outsideris @AndriiOmelianenko @robburger
I've deployed citizen as a pod in kubernetes cluster and have set up a certificate signed by a public CA authority (not self-signed). Cert is stored in kubernetes secret (from tls.crt and tls.key).
Exposed port 3000 of the container with a kubernetes service to port 443 and setup an ingress resource with TLS.
When reaching out to my registry URL: "https://tfregistry.mydomain.com/health" I receive OK, so the setup seems to be correct. Also in google chrome no complains about SSL -- it is as expected.
However when trying to push to my registry (using binaries "citizen-win" from windows 10 machine or "citizen-linux" from redhat 7.5), I'm facing following issue
command:
citizen module infra storage azurerm 1.0.0 --registry https://tfregistry.mydomain.com
response:
**√ compress the terraform module × publish infra/storage/azurerm/1.0.0** RequestError: unable to verify the first certificate at ClientRequest.<anonymous> (C:\snapshot\citizen\node_modules\got\dist\source\core\index.js:956:111) at Object.onceWrapper (events.js:422:26) at ClientRequest.emit (events.js:327:22) at ClientRequest.<anonymous> (C:\snapshot\citizen\node_modules\@szmarczak\http-timer\dist\source\index.js:39:20) at TLSSocket.socketErrorListener (_http_client.js:467:9) at TLSSocket.emit (events.js:315:20) at emitErrorNT (internal/streams/destroy.js:100:8) at emitErrorCloseNT (internal/streams/destroy.js:68:3) at processTicksAndRejections (internal/process/task_queues.js:84:21) at TLSSocket.onConnectSecure (_tls_wrap.js:1496:34) at TLSSocket.emit (events.js:315:20) at TLSSocket._finishInit (_tls_wrap.js:931:8) at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:705:12) { code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE', timings: { start: 1645783553415, socket: 1645783553419, lookup: 1645783553501, connect: 1645783553565, secureConnect: undefined, upload: undefined, response: undefined, end: undefined, error: 1645783553605, abort: undefined, phases: { wait: 4, dns: 82, tcp: 64, tls: undefined, request: undefined, firstByte: undefined, download: undefined, total: 190 } } }
setting NODE_TLS_REJECT_UNAUTHORIZED to 0 (as env. var. both in the registry container or on the machine from where I'm pushing the module) did not resolve the problem. I've tried using images older than 0.4.0 (latest) - same issue.
Can you please help with troubleshooting?
The text was updated successfully, but these errors were encountered: