Questions tagged [schannel]

Additional resources:

109 questions
0
votes
1 answer

SSL Session reuse with SChannel (Windows)

I have a program that use schannel.dll to make a SSL connection to remote server. But I'd like to disconnect from server often and reconnect without the need to renegotiate shared key again. I know that SSL support this, but don't know how to make…
Julian Popov
  • 17,401
  • 12
  • 55
  • 81
0
votes
0 answers

Google get access-token for service account using JWT and schannel

I need to get google OA2.0 access token for service account using JWT and schannel (not openssl - it is working, but I have to use schannel). Using win10, Delphi Alexandria 11.3 Patch 1, Indy 10... Libraries for SChannel:…
0
votes
1 answer

C++ Windows Winsock SChannel - AcquireCredentialsHandleW failing - due to UNISP_NAME or SChannel?

I'm trying to implement an SSL handshake in C++ x64 unicode in Windows using winsock, schannel, security etc. Example host is google.com. I created a SOCKET and could connect via WSAConnectByNameW. I'm setting my SCHANNEL parameters as…
0x38
  • 11
  • 6
0
votes
0 answers

Is there a way to get the private key in pem fromat from schannel::cert_context::PrivateKey

I'm trying to get the private key of certificates of my Windows Cert Store. I'm doing it with the schannel crate. let cert_store = schannel::cert_store::CertStore::open_current_user("MY")?; for cert in cert_store.certs() { /* pub enum…
User
  • 1
0
votes
0 answers

How to enable TLSv1.3 support in a .Net Framework running on pre Windows Server 2022?

I am looking for a way to enable TLSv1.3 support on a .Net Application running on Windows Server 2012. While I knew .Net relied on the OS for portions of the TLS stack, I didn't realize that this made it so TLSv1.3 was largely unsupported for most…
Liam Kelly
  • 3,524
  • 1
  • 17
  • 41
0
votes
0 answers

Ciphers in SCHANNEL not mapping to protocol

I have the following cipher suites set trough policy: As per this list (https://learn.microsoft.com/en-us/windows/win32/secauthn/tls-cipher-suites-in-windows-server-2022) I had expected the two "unresolved" ciphers to map to 771, TLS1.2. Any advice…
0
votes
1 answer

InitializeSecurityContextW returns SEC_E_INVALID_HANDLE after second call

I'm trying to implement secure sockets in my kernel mode application using Winsock Kernel and Schannel. I'm using this code as a reference to establish the secure connection. However, I encounter a weird issue where the second call to…
Louis Bernard
  • 229
  • 4
  • 20
0
votes
1 answer

Does the C# program I created on .NET framework 4.8 use openssl?

I developed a client that calls Rest API with C# (.NET framework 4.8) HttpWebRequest request = (HttpWebRequest)WebRequest.Create(URL); The server's HTTPS certificate encryption suite uses ECDHE-RSA-AES128-GCM-SHA256. I want to know which library my…
ai-rin
  • 11
  • 2
0
votes
0 answers

What causes SEC_E_INVALID_TOKEN?

#define WIN32_LEAN_AND_MEAN #include #include #define SECURITY_WIN32 #include #include #include #include #include #include #pragma comment (lib,…
Logos King
  • 121
  • 1
  • 6
0
votes
0 answers

When downloading file with curlPP some users get "schannel: failed to receive handshake, SSL/TLS connection failed"

I'm using the cURLpp library in C++ to download a file from the Internet as follows: std::string download_file_contents(const std::string& download_url) { curlpp::Easy request; request.setOpt(new curlpp::options::Url(download_url)); …
BullyWiiPlaza
  • 17,329
  • 10
  • 113
  • 185
0
votes
0 answers

Is HTTP Server API in Windows OS Maintained

Is HTTP Server API in Windows OS (https://learn.microsoft.com/en-us/windows/win32/http/http-api-start-page) still maintained. I see it supports only till SSLv3 as mentioned in the link…
0
votes
1 answer

SChannel TLS 1.3 mystery additional message

A while ago I implemented a client and server using SChannel to encrypt communication. Recently I made the required switch from the SCHANNEL_CRED struct to the SCH_CREDENTIALS one so that TLS 1.3 support is provided in Windows 11. However, I…
Kemp
  • 3,467
  • 1
  • 18
  • 27
0
votes
1 answer

Does SChannel support key update requests for TLS v1.3?

How can I request a key update on a TLS v1.3 connection implemented with Win32's SChannel? In other words, what is the Win32 function that provides similar functionality as SSL_key_update() in OpenSSL? I did not find any useful information in the…
Andreas Mueller
  • 201
  • 4
  • 13
0
votes
1 answer

How to use OpenSSL with TLS in .NET Core on Windows?

I have a simple challenge as I'm working on a multi-platform project where I have a server with TLS 1.2 and a client certificate that is required to authenticate any REST API calls. This works fine on Linux, in WSL and in Docker/Linux. But not on…
Wim ten Brink
  • 25,901
  • 20
  • 83
  • 149
0
votes
1 answer

Does SChannel support TLS 1.3 ? Need help w.r.t example client/server programs in C/C++ for implementing TLS 1.3 using SChannel?

Does SChannel support TLS 1.3 ? I need help with regard to example client/server programs in C/C++ for implementing TLS 1.3 using SChannel. I found SChannel.h defines SP_PROT_TLS1_3_CLIENT as 0x00002000, etc. But the grbitEnabledProtocols field of…
Omp_IN
  • 11