ssl

ssl not available

旧时模样 提交于 2021-01-03 08:38:54
问题 every time I try to pip install something, it says: WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/tensorflow/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken

Enabling ssl debug for java in intellij

限于喜欢 提交于 2021-01-03 03:30:26
问题 Following on from my problem here previous issue trying to send java mail via tls/ssl i am now trying to add ssl debugging in Intellij. In the oracle article it gives an example java -Djavax.net.debug=all \ -Djavax.net.ssl.trustStore=trustStore SSLSocketClientWithClientAuth bongos 2001 /index.html How do i configure my environment for a standalone application which runs via main() method? 回答1: All you need to do is edit your Run Configuration. Run -> Edit Configurations And then under the VM

Python Requests - Use TLS v.1_3

懵懂的女人 提交于 2021-01-02 20:29:27
问题 I am trying to make a request in Python using TLS 1.3 as it is what the site accepts. I use following code: import requests from requests.adapters import HTTPAdapter from requests.packages.urllib3.poolmanager import PoolManager from requests.packages.urllib3.util import ssl_ CIPHERS = ( 'AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:AES256-SHA' ) class TlsAdapter(HTTPAdapter): def __init__(self, ssl_options=0, **kwargs): self.ssl_options = ssl_options super(TlsAdapter, self).__init__(**kwargs)

Python Requests - Use TLS v.1_3

跟風遠走 提交于 2021-01-02 20:29:13
问题 I am trying to make a request in Python using TLS 1.3 as it is what the site accepts. I use following code: import requests from requests.adapters import HTTPAdapter from requests.packages.urllib3.poolmanager import PoolManager from requests.packages.urllib3.util import ssl_ CIPHERS = ( 'AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:AES256-SHA' ) class TlsAdapter(HTTPAdapter): def __init__(self, ssl_options=0, **kwargs): self.ssl_options = ssl_options super(TlsAdapter, self).__init__(**kwargs)

Accept self-signed certificates in Xamarin Android

耗尽温柔 提交于 2021-01-02 17:12:20
问题 I got a Xamarin Forms project and inside the MainPage.xaml.cs file i want to perform a request to my server. The server is written in ASP.NET Core 2 and is running with a self-signed certificate. To buy a certificate isn't a solution for my problem, because customers don't want it and application only running in LAN. In my MainPage.xaml.cs file the Http-request looks like this: HttpClient m_Client = new HttpClient(); var uri = new Uri(myURL); var response = await m_Client.GetAsync(uri); if

Accept self-signed certificates in Xamarin Android

梦想的初衷 提交于 2021-01-02 17:09:33
问题 I got a Xamarin Forms project and inside the MainPage.xaml.cs file i want to perform a request to my server. The server is written in ASP.NET Core 2 and is running with a self-signed certificate. To buy a certificate isn't a solution for my problem, because customers don't want it and application only running in LAN. In my MainPage.xaml.cs file the Http-request looks like this: HttpClient m_Client = new HttpClient(); var uri = new Uri(myURL); var response = await m_Client.GetAsync(uri); if

Accept self-signed certificates in Xamarin Android

两盒软妹~` 提交于 2021-01-02 17:08:38
问题 I got a Xamarin Forms project and inside the MainPage.xaml.cs file i want to perform a request to my server. The server is written in ASP.NET Core 2 and is running with a self-signed certificate. To buy a certificate isn't a solution for my problem, because customers don't want it and application only running in LAN. In my MainPage.xaml.cs file the Http-request looks like this: HttpClient m_Client = new HttpClient(); var uri = new Uri(myURL); var response = await m_Client.GetAsync(uri); if

Accept self-signed certificates in Xamarin Android

岁酱吖の 提交于 2021-01-02 17:07:59
问题 I got a Xamarin Forms project and inside the MainPage.xaml.cs file i want to perform a request to my server. The server is written in ASP.NET Core 2 and is running with a self-signed certificate. To buy a certificate isn't a solution for my problem, because customers don't want it and application only running in LAN. In my MainPage.xaml.cs file the Http-request looks like this: HttpClient m_Client = new HttpClient(); var uri = new Uri(myURL); var response = await m_Client.GetAsync(uri); if

Set accepted CA list and ignore SSL errors with chai-http

核能气质少年 提交于 2021-01-02 08:22:37
问题 I'm trying to write unit tests for my node code with chai/chai-http. Everything was working fine until I switched my server to an HTTPS server, but because my certificate is signed by an internal company root and the common name of the certificate I'm using doesn't match localhost, chai is throwing an error on my request. I'd like to do the following: Ignore SSL errors related to domain name verification. Set the list of CAs to check against. If this cannot be done, I'd be fine with just

TLS handshake through Istio ingress gateway fails (tlsMode=passthrough)

流过昼夜 提交于 2021-01-01 09:14:29
问题 A TLS handshake from an external client to a server inside a Kubernetes cluster fails. This is about understanding why. I've configured an Istio ingress gateway to pass through TLS received on port 15433, and route it to the server on port 433. The ingress gateway logs shows activity when the client attempts the TLS handshake, but not the server logs, nor the istio-proxy logs. TLS client : openssl s_client \ -connect [redacted]-[redacted].us-west-2.elb.amazonaws.com:15443 \ -servername