Questions tagged [schannel]

Additional resources:

109 questions
2
votes
1 answer

TLS Session Resumption with OpenSSL server and SChannel client

I must use the RFC5077 TLS session resumption. My Client use Windows SChannel and server usually uses OpenSSL. In my test, following result. OpenSSL 1.1.0 (or later) and SChannel: Always session reused, SChannel send previous Session…
sayuri
  • 193
  • 2
  • 14
2
votes
1 answer

Adding third party cipher suites that to conform to SSPI (Windows)

We have a socket class that currently uses schannel via SSPI calls (This is a legacy Windows desktop application). The problem is that our application has to support the cipher suite TLS_ECDHE_ECDSA_WITH _AES_128_CCM_8 and this is not available in…
virtore
  • 161
  • 1
  • 9
2
votes
1 answer

How to predict size for output of SslEncryptPacket

Usually Win32 API can tell what is the length of output buffer required. One need just pass 0 as buffer length and API returns error BUFFER_TOO_SMALL and number of bytes required. But it is not the same with SslEncryptPacket. It just returns error…
user2708351
  • 121
  • 7
2
votes
0 answers

Build a certificate context from a .pem file containing certificate and private key

I'm developing a C++/Windows TLS client. I can build a certificate context for the server certificate in this way: ReadFile(hFile, cert, 8192, &len, NULL); CryptStringToBinary(cert, readLen, CRYPT_STRING_BASE64_ANY, binCert, &binLen, NULL,…
rigazilla
  • 131
  • 1
  • 1
  • 8
2
votes
1 answer

Extract Certificate Chain from SChannel with C++ and CryptoApi/SChannel

Is it possible to extract the certificate chain sent by the remote computer in TLS 1.0 Handshake? The API QueryContextAttributes with SECPKG_ATTR_REMOTE_CERT_CONTEXT value, returns only the end certificate. Is possible to extract all the chain…
2
votes
0 answers

socket schannel client authentication

On Windows 7Pro, I have a secure socket client app using schannel. Connecting to a secure server with TLSV1.0, 1.1 and 1.2, without client authentication works fine. Connecting to a secure server with TLSV1.0, 1.1, with client authentication works…
LievenHS
  • 21
  • 2
2
votes
1 answer

How to add SNI client hello extension using Schannel API?

I'm trying to add SNI to my client-side program (C/C++) that uses Microsoft SDK's Schannel API for TLS. I've searched everywhere but could not find any documentation on how Schannel supports SNI extension. I looked up the documentation for …
Anurag S Sharma
  • 400
  • 2
  • 12
2
votes
0 answers

SSL Header returned by querycontextattributes is larger than expected using TLS1.2

I'm working to update a security library and I'm noticing some strange behavior when completing the SSL handshake and then calling querycontextattribute to obtain the header, maximum size, and trailer of the the messages. What I notice is when I…
sdd1208
  • 125
  • 1
  • 2
  • 5
2
votes
1 answer

Secure Socket Connections using c++

I am trying to get SSL/TLS connections to work in windows. Right now I am using Schannel, but I am not sure this is the correct way to go about it. Here is my code. An exception is thrown at the InitializeSecurityContextA() function #include…
Dziaji
  • 23
  • 4
1
vote
1 answer

Implement a secure connection using SSPI in C++ - clarify some terms

I have to write an application that implements a secure connection between client and server using Microsoft API . Google give me a lot of results, and I have a big mess -need someone to make me some order in my head: Questions: what is SSPI…
RRR
  • 3,937
  • 13
  • 51
  • 75
1
vote
1 answer

Why would SECBUFFER_EXTRA point to the inside of SECBUFFER_STREAM_TRAILER after calling DecryptMessage?

We have a client application on a Windows 7 SP1 VM with the appropriate hotfixes and registry settings to enable TLS 1.2 communication. We have a server application on a Windows Server 2019 Datacenter VM. The client and server establish a TLS 1.2…
Ian
  • 143
  • 2
  • 11
1
vote
1 answer

.Net 4.7.2 app does not honor SCHANNEL protocol settings

I disabled TLS 1.0 and 1.1 like so: [HKEY_LOCAL_MACHINE\SYSTEM...\SCHANNEL\Protocols\TLS 1.0\Client] "DisabledByDefault"=dword:00000001 "Enabled"=dword:00000000 [HKEY_LOCAL_MACHINE\SYSTEM...\SCHANNEL\Protocols\TLS…
cdonner
  • 37,019
  • 22
  • 105
  • 153
1
vote
3 answers

Has anyone tried using TLS 1.3 using SChannel with Windows-11 21h2?

I'm working on a TLS client that needs to be upgraded to use TLS 1.3 on Windows-11. Has anyone successfully implemented TLS 1.3 using SChannel APIs? As per Microsoft below link TLS 1.3 is supported in win-11 &…
1
vote
0 answers

Rsyslog client and SCHANNEL based server unable to decrypt the message when extended buffer contains additional data

At present we are using the rsyslog on Linux machine to send the message using TLS 1.2 which internally use GnuTLS library send the syslog message to one of our hosted server which accept the TLS data using the windows SCHANNEL method. We are…
Rakesh
  • 11
  • 1
1
vote
0 answers

How to avoid NCrypt Pin prompt during Microsoft Schannel handshake having certificate with CNG key where PIN is already provided programmatically

I have client certificates created with CNG keys with provider "Microsoft Platform Key Provider". The CNG key has a password with strong key authentication using the CNG parameters NCRYPT_UI_FORCE_HIGH_PROTECTION_FLAG. I am trying to use the…