ssl

Error: unable to verify the first certificate / How to trust all certificates?

心已入冬 提交于 2020-05-15 04:08:32
问题 When I try to install an extension I get this error: unable to verify the first certificate I already know that the problem is our internal network structure, which wraps every SSL Certificate with our own and not every application trusts our certificate. Is it possible to set the property Trust all SSL certificates in Visual Studio Code? Thanks 回答1: Had the same problem. Adding environment variable NODE_TLS_REJECT_UNAUTHORIZED=0 fixed it. Took this answer from here: Ignore invalid self

Providing an EC private key to certificate for use in HttpClient C#

帅比萌擦擦* 提交于 2020-05-13 11:47:31
问题 I have an certificate which I can read using the X509Certificate2 class like this: X509Certificate2 certificate = new X509Certificate2(@"certificate.pem"); But I also have an EC private key. This are it's file contents. -----BEGIN EC PRIVATE KEY----- MHcCAQEEIKpAuZ/Wwp7FTSCNJ56fFM4Y/rf8ltXp3xnrooPxNc1UoAoGCCqGSM49 AwEHoUQDQgAEqiRaEw3ItPsRAqdDjJCyqxhfm8y3tVrxLBAGhPM0pVhHuqmPoQFA zR5FA3IJZaWcopieEX5uZ4KMtDhLFu/FHw== -----END EC PRIVATE KEY----- How do I 'feed' this private key to the

Providing an EC private key to certificate for use in HttpClient C#

左心房为你撑大大i 提交于 2020-05-13 11:46:27
问题 I have an certificate which I can read using the X509Certificate2 class like this: X509Certificate2 certificate = new X509Certificate2(@"certificate.pem"); But I also have an EC private key. This are it's file contents. -----BEGIN EC PRIVATE KEY----- MHcCAQEEIKpAuZ/Wwp7FTSCNJ56fFM4Y/rf8ltXp3xnrooPxNc1UoAoGCCqGSM49 AwEHoUQDQgAEqiRaEw3ItPsRAqdDjJCyqxhfm8y3tVrxLBAGhPM0pVhHuqmPoQFA zR5FA3IJZaWcopieEX5uZ4KMtDhLFu/FHw== -----END EC PRIVATE KEY----- How do I 'feed' this private key to the

Can't pip install packages in python 3.6 due to ssl error

泪湿孤枕 提交于 2020-05-12 12:06:08
问题 I'm working on a remote server. When I try to install anything with pip within my virtual environment I get an error: (venv) [barta@bivoj program]$ pip install -r requirements.txt pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Collecting joblib==0.11 (from -r requirements.txt (line 1)) Could not fetch URL https://pypi.python.org/simple/joblib/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the

Can I share ACM SSL certificates between AWS acounts

﹥>﹥吖頭↗ 提交于 2020-05-12 11:17:49
问题 I have a few AWS accounts where I manage DNS addresses and ACM SSL certificates. I have a top-level.com domain in one account and another account manages subdomain.top-level.com. I created some SSL certificates with ACM on the top account for example: example.subdomain.top-level.com. But now I'd like to use the same certificate in my subdomain account. Is there a way to share these certificates between my accounts? 回答1: Reply from Amazon: ... Unfortunately it is not possible to share ACM

Separate TcpStream + SslStream into read and write components

自古美人都是妖i 提交于 2020-05-12 08:29:06
问题 I'm trying to make client program that communicates with a server using a TcpStream wrapped by a openssl::ssl::SslStream (from crates.io). It should wait for read , and process data sent from the server if it was received without delay . At the same time, it should be able to send messages to the server regardless of reading. I tried some methods such as Passing single stream to both read and write threads. Both read and write methods require a mutable reference, so I couldn't pass a single

Disable Python requests SSL validation for an imported module

非 Y 不嫁゛ 提交于 2020-05-11 05:11:07
问题 I'm running a Python script that uses the requests package for making web requests. However, the web requests go through a proxy with a self-signed cert. As such, requests raise the following Exception: requests.exceptions.SSLError: ("bad handshake: Error([('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')],)",) I know that SSL validation can be disabled in my own code by passing verify=False , e.g.: requests.get("https://www.google.com", verify=False) . I also know

Disable Python requests SSL validation for an imported module

最后都变了- 提交于 2020-05-11 05:10:31
问题 I'm running a Python script that uses the requests package for making web requests. However, the web requests go through a proxy with a self-signed cert. As such, requests raise the following Exception: requests.exceptions.SSLError: ("bad handshake: Error([('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')],)",) I know that SSL validation can be disabled in my own code by passing verify=False , e.g.: requests.get("https://www.google.com", verify=False) . I also know

Disable Python requests SSL validation for an imported module

廉价感情. 提交于 2020-05-11 05:08:31
问题 I'm running a Python script that uses the requests package for making web requests. However, the web requests go through a proxy with a self-signed cert. As such, requests raise the following Exception: requests.exceptions.SSLError: ("bad handshake: Error([('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')],)",) I know that SSL validation can be disabled in my own code by passing verify=False , e.g.: requests.get("https://www.google.com", verify=False) . I also know

Disable Python requests SSL validation for an imported module

醉酒当歌 提交于 2020-05-11 05:08:06
问题 I'm running a Python script that uses the requests package for making web requests. However, the web requests go through a proxy with a self-signed cert. As such, requests raise the following Exception: requests.exceptions.SSLError: ("bad handshake: Error([('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')],)",) I know that SSL validation can be disabled in my own code by passing verify=False , e.g.: requests.get("https://www.google.com", verify=False) . I also know