Questions tagged [schannel]

Additional resources:

109 questions
1
vote
2 answers

How to handle SEC_I_MESSAGE_FRAGMENT when performing a DTLS handshake via the SChannel SSPI?

When performing a DTLS handshake using the SChannel SSPI in Windows 10 - for which there is no documentation - how should the application handle a SEC_I_MESSAGE_FRAGMENT result from AcceptSecurityContext (ASC) or InitializeSecurityContext (ISC)? I…
Haddon CD.
  • 169
  • 8
1
vote
1 answer

Shutting Down an Schannel Connection

It is said that to shutdown a schannel connection following steps to be followed: 1)Call the ApplyControlToken function, specifying the SCHANNEL_SHUTDOWN control token. 2)After receiving an SEC_E_OK return value from ApplyControlToken, call the…
1
vote
0 answers

How to identify app source of SCHANNEL error?

Recently used IISCrypto to disable protocols less than TLS 1.2 on the IIS web server. Starting to see numerous SCHANNEL errors in the event log like so: A fatal error occurred while creating an SSL client credential. The internal error state is…
user2368632
  • 990
  • 1
  • 12
  • 33
1
vote
0 answers

Revocation certificate error when trying to pull GIT repo

I know there are a few similar posts to this but I have not been able to solve this with there answers. I tried git config —global http.schannelcheckrevoke false but I still get the error whether it’s set to true or false. fatal: unable to access…
1
vote
1 answer

Visual Studio 2019 + Bundled Git - SChannel encryption provider fails where standalone Git installation succeeds

Background Our organisation distributes internal certificates by using a group policy on our domain controller. For our git installations, this means that we will need to use the 'Windows Secure Channel' library for HTTPS connections, rather than…
jb637
  • 155
  • 1
  • 10
1
vote
1 answer

SSPI Schannel API returns undocumented value of 0xAE06 or CALG_ECDH_EPHEM

I am using the following code to query current TLS connection: SecPkgContext_ConnectionInfo data; QueryContextAttributes(&myHandle, SECPKG_ATTR_CONNECTION_INFO, &data); It returns correct structure with all the fields: typedef struct…
Maris B.
  • 2,333
  • 3
  • 21
  • 35
1
vote
0 answers

Schannel alerts are not being sent

Can't get the SChannel alert messages to be sent to client while calling my WCF service. I've enabled the verbose logging of the SChannel alerts to the Event Viewer by setting the "EventLogging" DWORD in the Registry Editor to 0x0004 instead of…
Abollo
  • 66
  • 7
1
vote
0 answers

How to access system private keys from a virtual service account?

I'm working on a NT service that uses SChannel to support client TLS connections. Certificates are installed manually via Local Machine Certificate Manager (certlm.msc) into a custom cert store, called "Public Hub Interface". The service has already…
1
vote
0 answers

MSXML2.ServerXMLHTTP.6.0 object in VBScript - SSL certificate chain trust problem

I need to make an HTTP request from VBScript to a domain secured with SSL. The library I'm using to do that, ServerXMLHTTP, doesn't seem to be able to connect due to SSL certificate trust failure. This seems strange, as when I browse to the domain…
1
vote
1 answer

InitializeSecurityContext (Schannel) returns SEC_I_INCOMPLETE_CREDENTIALS unexpectedly

I have implemented a code for creating a secure connection using SSPI. I use it for sending mail over SMTP. It works fine with smtp.gmail.com and some other servers which I tried it with. But it doesn't work with smtp.live.com. The second call of…
CITBL
  • 1,587
  • 3
  • 21
  • 36
1
vote
0 answers

Failed SSL/TLS handshake

I have a .NET (WinForms) application running as a (test-)client for a SOAP service. The service requires that the client authenticates itself with a client certificate (like this MSDN example:…
1
vote
0 answers

TLS for Windows Store and Windows 7+ Desktop

I want a client/server C++ application that can use TLS for secure communication, including client certificates, and potential to select and validate certificates myself. I have used Schannel to do this before, but the key InitializeSecurityContext…
Fire Lancer
  • 29,364
  • 31
  • 116
  • 182
1
vote
1 answer

TransmitFile + SChannel

I'm using the TransmitFile API with I/O completion ports for an efficient multithreaded file server on Windows. This all works fine, but I've now also implemented secure sockets using SChannel. Because TransmitFile streams the file directly to the…
Jamie M
  • 13
  • 2
1
vote
1 answer

SChannel, SEC_E_ALGORITHM_MISMATCH (0x80090331)

Days of troubleshooting on this one, googling solutions & re-reading Microsoft documentation on the needed functions. Changing variables, retrying again and again. Help is very thoroughly appreciated, I'm sure it's not just me running into this. I…
karezza
  • 586
  • 5
  • 13
1
vote
1 answer

SCHANNEL TLS Server side cannot CertFindCertificateInStore

I am adding TLS encryption to a server side application. I am using the Schannel API to add the TLS. I am having a problem with CertFindCertificateInStore. It does not ever find the certificate that I am searching for. As criteria for the search I…