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.

client ssl certificates?

See original GitHub issue

Admittedly, my understanding of this is quite limited but for https downloads to work in our organization, locally issued certificates must be in place. I believe that many corporate environments use client ssl certificates this way.

However, this creates a problem with the use of urllib.request as currently implemented in scout as local certificates are not set.

There are a couple of ways around this:

  1. Since urllib.request depends on OpenSSL, setting the SSL_CERT_FILE env variable solves the issue. However, I read somewhere that this is discouraged and may not work in the future.

  2. Another way would be to use the cafile argument when urllib.request is called, but that requires implemention.

If the latter solution is preferred, where should the cafile setting go? I don’t yet have a good grasp of the scout code base. Is there a file somewhere where settings like this are normally put?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dnilcommented, Dec 16, 2019

Hi again! Great that you are working on this!

From the top of my head that would in routine use be the task of the web server, rather than the web app / flask? As in gunicorn --certfile=server.crt in docs - server - Production. The only time I remember we would use a cert directly on the app would be for testing with the tiny built-in flask web-server?

0reactions
parlarcommented, Dec 16, 2019

Great!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Client Certificates vs. Server Certificates - DigiCert
Server or SSL Certificates perform a very similar role to Client Certificates, except the latter is used to identify the client/individual and the...
Read more >
What is SSL Client Certificate Authentication and How Does It ...
A client certificate works to authenticate the requester to the server. It assures the server that the request is coming from a legitimate...
Read more >
SSL: A Client Certificate vs Server Certificate - Comodo SSL
A client certificate is a digital certificate used by a person/device to authenticate their identity to a remote server while making an online...
Read more >
Client certificates - SSL/TLS - Cloudflare Docs
Use Cloudflare public key infrastructure (PKI) to create client certificates. You can use these certificates with Cloudflare API Shield™ to ...
Read more >
Client Certificates vs Server Certificates - What are differences?
In SSL handshake process, a client makes a request for a secured connection, the server shows its public certificate for the acceptance. The...
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