Hi all, I install n8n in docker, I got error message below:
Anyone have idea about SELF_SIGNED_CERT_IN_CHAIN
Editor is now accessible via:
2025-03-04 17:19:48 http://localhost:5678
2025-03-04 17:19:48 2025-03-04T09:19:48.969Z [Rudder] error: Response error code: SELF_SIGNED_CERT_IN_CHAIN
2025-03-04 17:19:49 2025-03-04T09:19:49.014Z [Rudder] error: Error: SELF_SIGNED_CERT_IN_CHAIN
2025-03-04 17:19:49 self-signed certificate in certificate chain
2025-03-04 17:19:49 self-signed certificate in certificate chain
2025-03-04 17:19:58 self-signed certificate in certificate chain
2025-03-04 17:19:58 self-signed certificate in certificate chain
2025-03-04 17:20:29 Owner was set up successfully
2025-03-04 17:20:39 Error fetching feature flags Error [PostHogFetchNetworkError]: Network error while fetching PostHog
2025-03-04 17:20:39 at new PostHogFetchNetworkError (/usr/local/lib/node_modules/n8n/node_modules/posthog-node/lib/index.cjs.js:740:16)
2025-03-04 17:20:39 at PostHog. (/usr/local/lib/node_modules/n8n/node_modules/posthog-node/lib/index.cjs.js:1129:51)
2025-03-04 17:20:39 at step (/usr/local/lib/node_modules/n8n/node_modules/posthog-node/lib/index.cjs.js:135:27)
2025-03-04 17:20:39 at Object.throw (/usr/local/lib/node_modules/n8n/node_modules/posthog-node/lib/index.cjs.js:84:53)
2025-03-04 17:20:39 at rejected (/usr/local/lib/node_modules/n8n/node_modules/posthog-node/lib/index.cjs.js:71:36)
2025-03-04 17:20:39 at processTicksAndRejections (node:internal/process/task_queues:95:5) {
2025-03-04 17:20:39 error: TypeError: fetch failed
2025-03-04 17:20:39 at node:internal/deps/undici/undici:13502:13
2025-03-04 17:20:39 at processTicksAndRejections (node:internal/process/task_queues:95:5) {
2025-03-04 17:20:39 [cause]: Error: self-signed certificate in certificate chain
2025-03-04 17:20:39 at TLSSocket.onConnectSecure (node:_tls_wrap:1677:34)
2025-03-04 17:20:39 at TLSSocket.emit (node:events:518:28)
2025-03-04 17:20:39 at TLSSocket._finishInit (node:_tls_wrap:1076:8)
2025-03-04 17:20:39 at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:862:12) {
2025-03-04 17:20:39 code: ‘SELF_SIGNED_CERT_IN_CHAIN’
2025-03-04 17:20:39 }
2025-03-04 17:20:39 },
2025-03-04 17:20:39 [cause]: TypeError: fetch failed
2025-03-04 17:20:39 at node:internal/deps/undici/undici:13502:13
2025-03-04 17:20:39 at processTicksAndRejections (node:internal/process/task_queues:95:5) {
2025-03-04 17:20:39 [cause]: Error: self-signed certificate in certificate chain
2025-03-04 17:20:39 at TLSSocket.onConnectSecure (node:_tls_wrap:1677:34)
2025-03-04 17:20:39 at TLSSocket.emit (node:events:518:28)
2025-03-04 17:20:39 at TLSSocket._finishInit (node:_tls_wrap:1076:8)
2025-03-04 17:20:39 at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:862:12) {
2025-03-04 17:20:39 code: ‘SELF_SIGNED_CERT_IN_CHAIN’
2025-03-04 17:20:39 }
2025-03-04 17:20:39 }
2025-03-04 17:20:39 }
2025-03-04 17:20:40 2025-03-04T09:20:40.160Z [Rudder] error: Response error code: SELF_SIGNED_CERT_IN_CHAIN
2025-03-04 17:20:40 2025-03-04T09:20:40.161Z [Rudder] error: Error: SELF_SIGNED_CERT_IN_CHAIN
2025-03-04 17:20:40 self-signed certificate in certificate chain
2025-03-04 17:20:40 self-signed certificate in certificate chain
2025-03-04 17:20:45 User survey updated successfully
2025-03-04 17:20:55 self-signed certificate in certificate chain
2025-03-04 17:20:55 self-signed certificate in certificate chain
Hey @rayyeh
This was the first issue i ran into with n8n.
The UI doesn’t fully work on http and you have to setup an SSL certificate to enable HTTPS.
I have done it with a reverse proxy (Caddy supper easy to use) but you have the option of issuing a self-signed certificate and point directly to it in your docker env varaibles N8N_SSL_CERT
and N8N_SSL_KEY
too.
Here is the official n8n documentation on the topic: Set up SSL | n8n Docs
I find the problem. My pc connect to internet using proxy.
I pass proxy (direct to internet) , it do not display SELF_SIGNED_CERT_IN_CHAIN message.
1 Like
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.