question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow for custom CA/self signed certificates

See original GitHub issue

Description

I run my own CA in my lab, and as a result, homarr throws errors when it tries to integrated with services like Sonarr and Radarr:

RequestError: unable to get local issuer certificate
at ClientRequest.<anonymous> (file:///app/node_modules/got/dist/source/core/index.js:760:107)
at Object.onceWrapper (node:events:642:26)
at ClientRequest.emit (node:events:539:35)
at TLSSocket.socketErrorListener (node:_http_client:454:9)
at TLSSocket.emit (node:events:527:28)
at emitErrorNT (node:internal/streams/destroy:157:8)
at emitErrorCloseNT (node:internal/streams/destroy:122:3)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
at TLSSocket.onConnectSecure (node:_tls_wrap:1532:34)
at TLSSocket.emit (node:events:527:28)
at TLSSocket._finishInit (node:_tls_wrap:946:8)
at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:727:12)

It would be a nice to be able to add a custom CA certificate, or at a minimum, disable the strict certificate verifiction (i.e. accept any certificate, as long as it’s valid).

Priority

Medium (Would be very useful)

Please tick the boxes

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
LarveyOfficialcommented, Jun 13, 2022

If you are using docker-compose.yml you can try adding this into the homarr block:

command: 'yarn config set "strict-ssl" false -g'

services:
  homarr:
    command: 'yarn config set "strict-ssl" false -g'

This might be a good idea to add as an Environment variable. That way it can easily be toggled.

1reaction
DebugDaxcommented, Jun 13, 2022

If you are using docker-compose.yml you can try adding this into the homarr block:

command: 'yarn config set "strict-ssl" false -g'

services:
  homarr:
    command: 'yarn config set "strict-ssl" false -g'
Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding the self-signed certificate as trusted to a browser
Open the Certificates management console, and then run the following command: certmgr. · In the tree pane, select Trusted Root Certification Authorities > ......
Read more >
Enabling SSL using a self-signed certificate—Documentation ...
This topic shows you how you can enable SSL for ArcGIS Server using a self-signed certificate. The following steps enable SSL using a...
Read more >
What is a Self-Signed Certificate? Advantages, Risks ...
While self-signed certificates allow developers to obtain certificates quickly and easily, they often circumvent the policies you've put in ...
Read more >
How To Create Self-Signed Certificates Using OpenSSL
In this guide, we have given step-by-step guides on how to create self-signed certificates using the OpenSSL utility.
Read more >
How to Create Your Own SSL Certificate Authority for Local ...
Enable your root certificate under “ENABLE FULL TRUST FOR ROOT CERTIFICATES”. iOS Trust Certificate Settings. #Creating CA-Signed Certificates ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found