ssl

SoapHttpClientProtocol and TLS 1.2 - The client and server cannot communicate, because they do not possess a common algorithm

廉价感情. 提交于 2020-05-24 20:38:06
问题 There are numerous posts on SO about this and I have scoured them, but still don't have a solution. I am hoping that someone can point me in the right direction. We have a requirement now to use TLS 1.2 to connect to a remote provider. So I have installed Windows Server 2016 and configured it as needed: I know the remote server is running TLS 1.2 and that it supports the highlighted cipher. We connect to the remote end point using C# proxy class generated by the WSDL provided by the provider

Python 3.4.3 failed to build these modules: _hashlib _ssl

青春壹個敷衍的年華 提交于 2020-05-23 18:14:07
问题 When trying to compile Python 3.4.3 with gcc (Debian 6.2.1-7) 6.2.1 20161215 I got the following error: Failed to build these modules: _hashlib _ssl When running make again, I got a little more informative output: $ make running build running build_ext INFO: Can't locate Tcl/Tk libs and/or headers building '_ssl' extension gcc -pthread -fPIC -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Werror=declaration-after-statement -I./Include -I. -IInclude -I/usr/include/x86_64

How to validate a SSL certificate with C#

故事扮演 提交于 2020-05-23 11:44:33
问题 maybe one of you can help me answer my question about validating certificates in the .NET framework. Unfortunately I found only superficial answers to my questions during my research on the Internet, but no exact explanation. Meanwhile I know that I can check in my software with the following code whether a certificate is valid. ServicePointManager.ServerCertificateValidationCallback += ValidateRemoteCertificate; private bool ValidateRemoteCertificate(object sender, X509Certificate cert,

Scapy: Processing partial TLS segments

会有一股神秘感。 提交于 2020-05-23 10:23:11
问题 I am trying to extract TLS meta-data from a pcap using Scapy. I am able to successfully parse the packets and individual messages such as the client-hello, server-hello etc and their fields. What I am having trouble with is when the TLS record is spread across multiple TCP packets/segments. This happens mostly for large TLS messages, such as application data or when server sends multiple TLS messages (server hello, certificate, etc) in one TLS frame. In such cases, scapy says it has the TLS

Legacy Java code use of com.sun.net.ssl.internal.ssl.Provider()

我的梦境 提交于 2020-05-23 08:18:10
问题 I am working with some code from back in 2003. There is a reference to the following class: new com.sun.net.ssl.internal.ssl.Provider() It is causing an error: Access restriction: The type Provider is not accessible due to restriction on required library /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/jsse.jar Does anyone have any suggestions for a suitable alternative to using this class? 回答1: Most of the time, you don't actually need to create or get hold of a provider

zsh: no matches found: requests[security]

≯℡__Kan透↙ 提交于 2020-05-21 03:03:19
问题 I am trying to run a python urllib2 script and getting this error: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. After googling the error the solution, on stack overflow is to download requests' security package: pip install requests[security] But when I run that

SSL.keystore.location can't find JKS file in my Kubernetes secrets mount

跟風遠走 提交于 2020-05-17 07:45:39
问题 I have created a secret for my JKS file under volume mount /etc/secrets/keystore. I am accessing my JKS file path as an environment variable where ssl.keystore.location gets resolved as file:///etc/secrets/keystore/ssl.jks. But I get exception from SSL engine builder that modification time of keystore couldn't be found and java.nio.file.NoSuchFile Exception file:/etc/secrets/keystore/ssl.jks 回答1: Remove the file:// . The keystore is opened by the Kafka client, not Spring. Kafka knows nothing

Internal.Cryptography.CryptoThrowHelper.WindowsCryptographicException

坚强是说给别人听的谎言 提交于 2020-05-15 05:45:08
问题 I'm getting the following error message from Visual Studio 2017 on first run of the ASP.NET Core MVC Boilerplate template (DotNet Core) regarding the SSL certificate: "Internal.Cryptography.CryptoThrowHelper.WindowsCryptographicException occurred HResult=0x80070002 Message=The system cannot find the file specified Source= StackTrace: at Internal.Cryptography.Pal.CertificatePal.FromBlobOrFile(Byte[] rawData, String fileName, String password, X509KeyStorageFlags keyStorageFlags) at System

Error while creating a CSR

倾然丶 夕夏残阳落幕 提交于 2020-05-15 05:17:22
问题 During the creation of self-signed certificate using OpenSSL command line tool, i'm encountered with an error First I created a private key openssl genrsa -out MyKey1.key 2048 While creating a CSR i'm getting an error openssl req -new -out MyCert1.req -key MyKey1.key -subj /CN=Description of the Server Error is problem creating object tsa-policy1=1.2.3.4.1 5364:error:08064066:object identifier routines:OBJ_create:pid exists:crypto\objects\obj_dat.c:689: Is there something i'm missing here ?

Error while creating a CSR

半腔热情 提交于 2020-05-15 05:17:21
问题 During the creation of self-signed certificate using OpenSSL command line tool, i'm encountered with an error First I created a private key openssl genrsa -out MyKey1.key 2048 While creating a CSR i'm getting an error openssl req -new -out MyCert1.req -key MyKey1.key -subj /CN=Description of the Server Error is problem creating object tsa-policy1=1.2.3.4.1 5364:error:08064066:object identifier routines:OBJ_create:pid exists:crypto\objects\obj_dat.c:689: Is there something i'm missing here ?