Questions tagged [schannel]

Additional resources:

109 questions
16
votes
2 answers

What is the difference between the DisabledByDefault and Enabled SSL/TLS registry keys on Microsoft Windows?

Microsoft provides best practices guidance for Transport Layer Security (TLS). This document describes registry keys that can enable or disable a specific…
Timothy Schoonover
  • 3,195
  • 4
  • 29
  • 44
12
votes
1 answer

How to import an OpenSSL key file into the Windows Certificate Store

I've got an OpenSSL generated X.509 certificate in PEM format and it's associated key file. This certificate is required for authentication when connecting to a prototype server. This works fine on Linux. I've been using the Microsoft SChannel API…
Gearoid Murphy
  • 11,834
  • 17
  • 68
  • 86
10
votes
1 answer

AcquireCredentialsHandle fails in kernel mode, when using SCH_CRED_FORMAT_CERT_HASH

I call AcquireCredentialsHandle in a kernel driver, passing in SCHANNEL_CRED with the dwCredFormat set to SCH_CRED_FORMAT_CERT_HASH. It fails with SEC_E_NO_CREDENTIALS. Here is my code: BYTE certHashBytes[20] = {…
wezten
  • 2,126
  • 3
  • 25
  • 48
9
votes
0 answers

SChannel send intermediate certificate chain from memory store

I am working with a server using SChannel TLS. I use SCHANNEL_CRED and AcquireSecurityCredentials to create the security credentials that are then passed to AcceptSecurityContext. Everything seems to work ok, but SChannel will not send an…
John
  • 791
  • 1
  • 6
  • 22
8
votes
0 answers

A call to SSPI failed, see inner exception. The function requested is not supported

In my company we have a Windows service developed in C# to process requests messages from clients using SSLStream with Tls12 and Server and Client certificates. Service have worked fine on Windows Server 2012, including Windows 10 PC, no matter if…
Aldemar Cuartas Carvajal
  • 1,573
  • 3
  • 20
  • 39
7
votes
1 answer

Left with 0 client certificates to choose from when accessing SSRS management.

Environment: Reporting Services running on a SQL Server 2008 R2 SP3 installation on a Windows 2008 server with .Net 4.6.1 installed and .Net 3.5 enabled as feature. IIS, database and reporting service all in the local machine (custom login URL in a…
Ignacio Soler Garcia
  • 21,122
  • 31
  • 128
  • 207
7
votes
1 answer

SChannel/SSL implementation?

I can implement HTTP using "win sockets" easily , but I've been struggling to implement HTTPS using "SChannel" which is pretty much poorly documented "at least for me". How can I establish a secure connection for HTTPS communication and is there any…
M.U
  • 381
  • 3
  • 10
7
votes
2 answers

Libcurl stops working, SSL connect error

I'm working on a program for personal use that scrapes a few webpages periodically. One of them requires the use of SSL, and its main URL actually is a load balancer that redirects to a different domain each time, out of a list of a handful (not…
Jehjoa
  • 551
  • 8
  • 23
6
votes
1 answer

How to increase the TLS handshake size in .NET?

I'm experiencing connection negotiations failure while trying to establish two way authentication with .NET clients. This happens after the remote server increased significantly the list of authorized CA. While this issue can be easily resolved in…
Perfect28
  • 11,089
  • 3
  • 25
  • 45
6
votes
2 answers

DTLS using Schannel

I am trying to create a DTLS "connection" using Schannel under Windows (I am testing under recent Windows 10 version, so all DTLS versions supported by Schannel should be available) I tried starting from working code to establish a regular TLS…
fbrosseau
  • 374
  • 3
  • 9
5
votes
2 answers

The TLS protocol defined fatal alert code is 70

I'm trying to access an SSL URL from a Windows browser to another machine running Tomcat and I am seeing error 36887 from Schannel in the System event log on the Windows machine with this description: The TLS protocol defined fatal alert code is…
Dave Richardson
  • 4,880
  • 7
  • 32
  • 47
5
votes
4 answers

curl error 35 : failed to receive handshake, SSL/TLS connection failed

When I try to execute this curl command : curl -v --key some_key_file.key --cert certificate_file.pem --show-error --header "Content-Type: application/json;charset=UTF-8" https://some-api/service I get the following error : curl: (35) schannel:…
Lucas Charbonnier
  • 441
  • 1
  • 4
  • 11
5
votes
2 answers

Very weird SSL error in .NET: The specified data could not be decrypted only for a specific URL

I'm using .NET to download data from a URL. For most URLs it works no problem, but for one specific URL, I am getting a very weird error when I try to make the connection. Furthermore, the error only happens on the 2nd (and subsequent) attempts to…
RobSiklos
  • 8,348
  • 5
  • 47
  • 77
5
votes
1 answer

What are the Schannel TLS fatal alert codes?

Where can I find a definition of the Windows Schannel fatal alerts codes that show up in Event Viewer? For instance: A fatal alert was received from the remote endpoint. The TLS protocol defined fatal alert code is 40. A fatal alert was generated…
JD Brennan
  • 992
  • 1
  • 10
  • 20
5
votes
1 answer

Can't connect to the SSL server that use only ephemeral ciphersuites (The Local Security Authority cannot be contacted)

I'm trying to connect to the test server started with openssl (this limited ciphersuite combination is intended): openssl s_server -accept 443 -www -tls1_2 -cipher ECDHE:DHE:EDH -cert selfsignedcert.pem -key sskey.pem The code I use is similar to…
savageBum
  • 282
  • 1
  • 4
  • 11
1
2 3 4 5 6 7 8