Ошибка an error occurred in the secure channel support

None of the answers above applies to my situation. Then I hopped on the link here:

https://support.microsoft.com/en-za/help/3140245/update-to-enable-tls-1-1-and-tls-1-2-as-a-default-secure-protocols-in

This update provides support for Transport Layer Security (TLS) 1.1 and TLS 1.2 in Windows Server 2012, Windows 7 Service Pack 1 (SP1), and Windows Server 2008 R2 SP1.

Applications and services that are written by using WinHTTP for Secure Sockets Layer (SSL) connections that use the WINHTTP_OPTION_SECURE_PROTOCOLS flag can’t use TLS 1.1 or TLS 1.2 protocols. This is because the definition of this flag doesn’t include these applications and services.

This update adds support for DefaultSecureProtocols registry entry that allows the system administrator to specify which SSL protocols should be used when the WINHTTP_OPTION_SECURE_PROTOCOLS flag is used.

This can allow certain applications that were built to use the WinHTTP default flag to be able to leverage the newer TLS 1.2 or TLS 1.1 protocols natively without any need for updates to the application.

This is the case for some Microsoft Office applications when they open documents from a SharePoint library or a Web Folder, IP-HTTPS tunnels for DirectAccess connectivity, and other applications by using technologies such as WebClient by using WebDav, WinRM, and others.

This update will not change the behavior of applications that are manually setting the secure protocols instead of pass the default flag.

Client service on Windows 2008 R2 server outbound to server over TLS reciprocated the error in question. I thought it could be cipher suite compatibility. Wireshark trace indicated version in Client Hello request was TLS 1.0 but server requires TLS 1.2. The cipher suites sent to outbound server from client service were fine. The problem is the client service or application on Windows server default employs the system default, which is not TLS 1.2.

The solution is to add a registry subkey named DefaultSecureProtocols with a value corresponding to which TLS version(s) should be supported. Add said registry subkey, with type DWORD, to the following locations:

  • HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionInternet SettingsWinHttp
  • HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionInternet SettingsWinHttp

For Internet Explorer fix, you can add a similar registry subkey titled SecureProtocols, also with type DWORD, to the following locations:

  • HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet Settings
  • HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionInternet Settings

Below you can find the table of values for both subkeys:

DefaultSecureProtocols Value         Protocol enabled
0x00000008                           Enable SSL 2.0 by default
0x00000020                           Enable SSL 3.0 by default
0x00000080                           Enable TLS 1.0 by default
0x00000200                           Enable TLS 1.1 by default
0x00000800                           Enable TLS 1.2 by default

For example:

The administrator wants to override the default values for WINHTTP_OPTION_SECURE_PROTOCOLS to specify TLS 1.1 and TLS 1.2.

Take the value for TLS 1.1 (0x00000200) and the value for TLS 1.2 (0x00000800) then add them together in calculator (in programmer mode), the resulting registry value would be 0x00000A00.

I applied 0x00000A00 as the value for both subkeys and it successfully resolved the issue.

There is also an Easy Fix (link is here: https://aka.ms/easyfix51044) available from Microsoft, if you don’t wish to manually enter registry subkeys and values.

None of the answers above applies to my situation. Then I hopped on the link here:

https://support.microsoft.com/en-za/help/3140245/update-to-enable-tls-1-1-and-tls-1-2-as-a-default-secure-protocols-in

This update provides support for Transport Layer Security (TLS) 1.1 and TLS 1.2 in Windows Server 2012, Windows 7 Service Pack 1 (SP1), and Windows Server 2008 R2 SP1.

Applications and services that are written by using WinHTTP for Secure Sockets Layer (SSL) connections that use the WINHTTP_OPTION_SECURE_PROTOCOLS flag can’t use TLS 1.1 or TLS 1.2 protocols. This is because the definition of this flag doesn’t include these applications and services.

This update adds support for DefaultSecureProtocols registry entry that allows the system administrator to specify which SSL protocols should be used when the WINHTTP_OPTION_SECURE_PROTOCOLS flag is used.

This can allow certain applications that were built to use the WinHTTP default flag to be able to leverage the newer TLS 1.2 or TLS 1.1 protocols natively without any need for updates to the application.

This is the case for some Microsoft Office applications when they open documents from a SharePoint library or a Web Folder, IP-HTTPS tunnels for DirectAccess connectivity, and other applications by using technologies such as WebClient by using WebDav, WinRM, and others.

This update will not change the behavior of applications that are manually setting the secure protocols instead of pass the default flag.

Client service on Windows 2008 R2 server outbound to server over TLS reciprocated the error in question. I thought it could be cipher suite compatibility. Wireshark trace indicated version in Client Hello request was TLS 1.0 but server requires TLS 1.2. The cipher suites sent to outbound server from client service were fine. The problem is the client service or application on Windows server default employs the system default, which is not TLS 1.2.

The solution is to add a registry subkey named DefaultSecureProtocols with a value corresponding to which TLS version(s) should be supported. Add said registry subkey, with type DWORD, to the following locations:

  • HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionInternet SettingsWinHttp
  • HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionInternet SettingsWinHttp

For Internet Explorer fix, you can add a similar registry subkey titled SecureProtocols, also with type DWORD, to the following locations:

  • HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet Settings
  • HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionInternet Settings

Below you can find the table of values for both subkeys:

DefaultSecureProtocols Value         Protocol enabled
0x00000008                           Enable SSL 2.0 by default
0x00000020                           Enable SSL 3.0 by default
0x00000080                           Enable TLS 1.0 by default
0x00000200                           Enable TLS 1.1 by default
0x00000800                           Enable TLS 1.2 by default

For example:

The administrator wants to override the default values for WINHTTP_OPTION_SECURE_PROTOCOLS to specify TLS 1.1 and TLS 1.2.

Take the value for TLS 1.1 (0x00000200) and the value for TLS 1.2 (0x00000800) then add them together in calculator (in programmer mode), the resulting registry value would be 0x00000A00.

I applied 0x00000A00 as the value for both subkeys and it successfully resolved the issue.

There is also an Easy Fix (link is here: https://aka.ms/easyfix51044) available from Microsoft, if you don’t wish to manually enter registry subkeys and values.

Problem

DataStage Designer Client fails to connect to DataStage server with the following error message: An error occurred in the secure channel support [12157]

Cause

This error occurs when there is no common TLS/SSL protocol between the Information Server service tier, and the Designer client on Windows.

By default, modern installations of Windows support TLS 1.2 only.

In 2022, most Windows Update settings block TLS 1.0 connections.

Older versions of Information Server, such as 11.5, were set up with TLS 1.0 by default.

Environment

First, check to see whether you can access the WebSphere Application Server admin console.

Most browsers do not directly support TLS 1.0.  In this situation, you might need to change the browser configuration.

For instance, in Firefox, you can:

  • Start with about:config
  • Search for the tls settings
  • Change security.tls.version.min to 0.

These steps enable TLS 1.0 support for Firefox. You can change the security.tls.version.min setting back to the original value when you are done.

If you are using a different browser like Chrome or Edge, check the browser documentation on how to enable TLS 1.0 connections.

Resolving The Problem

In the WebSphere Application Server admin console, enable TLS 1.2.

These steps are described in one of our technotes:

Once the service tier is updated for TLS 1.2, you can now use Designer and Director with the service tier of Information Server.

(Older protocols, such as TLS 1.0, SSL 3.0, and SSL 2.0 are considered insecure, and are no longer recommended for active Information Server installations that use SSL)

[{«Product»:{«code»:»SSVSEF»,»label»:»IBM InfoSphere DataStage»},»Business Unit»:{«code»:»BU059″,»label»:»IBM Software w/o TPS»},»Component»:»Not Applicable»,»Platform»:[{«code»:»PF033″,»label»:»Windows»}],»Version»:»11.5″,»Edition»:»»,»Line of Business»:{«code»:»LOB10″,»label»:»Data and AI»}}]

Windows — The following error message can occur Internet Explorer is out of date, or TLS 1.1 and TLS 1.2 is not enabled. FLEX components of Internet Explorer to download content libraries.

‘The download failed! Please contact support.

An error occurred in the secure channel support

(12057)’

Correct the issue as follows:

  1. Type ‘check for updates’ into your start menu and open it OR Win+R and type  ‘control update’ into the run-window and hit ‘OK’
  2. Click «Check for updates»
  3. Install updates, restart computer and try again

If you use Windows 7, please install the update to enable TLS 1.1 and TLS 1.2.

If you use Windows 10, please make sure, that TLS 1.3 is NOT enabled, this is a different, experimental implementation that will break FLEX downloads, this will not happen on Windows 11.

How to disable TLS 1.3 (for Windows 10):

  1. Press Windows key + R to open the ‘Run’ prompt
  2. Type ‘inetcpl.cpl’ (without ») and press OK
  3. Switch to the ‘Advanced’ tab
  4. Scroll down until you see ‘Use TLS 1.3 (experimental)’
  5. Disable
  6. Click on Apply and OK
  7. Reboot PC

Did you see a different error message?

Please see FLEX Connection or Download Errors and the solutions.

Image-Line Support Team

#1

Новичок

  • Группа:
    Пользователи
  • сообщений
    1
  • Регистрация:
    18-января 15
  • Webmoney BL

Отправлено 18 января 2015 — 15:30

Доброго времени суток. Пытаюсь 2й день купить себе Premium код в Vip file и в Letitbit, никак не выходит. Пробывал и там и там, но постаянно выдает ошибку — An error occurred in the secure channel support (-2147012739) step=5.09

    • 0

  • Наверх

#2

Знаток

632584157120 (WMID 632584157120 )

Отправлено 19 января 2015 — 13:03

    • 0

  • Наверх

#3

Новичок

antoncik (WMID 518733034417 )

  • Группа:
    Пользователи
  • сообщений
    1
  • Регистрация:
    19-января 15
  • Webmoney BL

Отправлено 19 января 2015 — 19:35

Тоже самое , хочу купить премиум с vip-keys.com и после введения числа  ENUM и потверждения покупки выскакивает ошибка :

An error occurred in the secure channel support (-2147012739) step=5.09

186MlSc.png

PS: та же ошибка при проверке через смс

Сообщение отредактировал antoncik: 19 января 2015 — 19:36

    • 0

  • Наверх

#4

Пользователь

kabachok (WMID 618147732123 )

  • Группа:
    Пользователи
  • сообщений
    5
  • Регистрация:
    09-октября 08
  • МестоположениеРоссия
  • Webmoney BL

Отправлено 10 февраля 2015 — 23:20

Здравствуйте, какая же проблема. Что делать?

    • 0

  • Наверх

#5

Новичок

vsmerd (WMID 387578378402 )

  • Группа:
    Пользователи
  • сообщений
    1
  • Регистрация:
    09-апреля 15
  • Webmoney BL

Отправлено 09 апреля 2015 — 19:03

У меня тоже самое выдаёт пытался с разных браузеров оплатить билет в столото

скрин NoxDS7f3q0mjJOhJqrVYA.png

    • 0

  • Наверх

#6

Новичок

frostein (WMID 248939438384 )

  • Группа:
    Пользователи
  • сообщений
    1
  • Регистрация:
    11-января 15
  • Webmoney BL

Отправлено 19 апреля 2015 — 21:47

Так кто не будь даст ответ, как решить эту проблему???

    • 0

  • Наверх


#8

Новичок

Kulbaba97 (WMID 316273128260 )

  • Группа:
    Пользователи
  • сообщений
    1
  • Регистрация:
    19-апреля 15
  • Webmoney BL

Отправлено 19 апреля 2015 — 22:10

Таже самая проблема, пробовал и смс и e-num не проходит

    • 0

  • Наверх

#9

Новичок

Sewad (WMID 112419565016 )

  • Группа:
    Пользователи
  • сообщений
    1
  • Регистрация:
    08-мая 15
  • Webmoney BL

Отправлено 08 мая 2015 — 15:21

An error occurred in the secure channel support (-2147012739) step=5.09

Так что с этим делать?

    • 0

  • Наверх

#10

Пользователь

324358548688 (WMID 324358548688 )

  • Группа:
    Пользователи
  • сообщений
    5
  • Регистрация:
    15-мая 15
  • Webmoney BL

Отправлено 04 июня 2015 — 18:39

Такая же проблема,и такая же ошибка,в чем может быть проблема? и как ее решить,подскажите пожалуйста.

    • 0

  • Наверх

#11

Участник

Интернет технологии (WMID 398204798394 )

  • Группа:
    Пользователи
  • сообщений
    19
  • Регистрация:
    05-июля 10
  • МестоположениеУкраина
  • Webmoney BL

Отправлено 30 июня 2015 — 11:40

Люди укажите ссылку на сайт, где оплату делали. Скорее всего это из-за конфликта Cludflare и WM.

    • 0

  • Наверх

#12

Новичок

antpolitov (WMID 332117435389 )

  • Группа:
    Пользователи
  • сообщений
    1
  • Регистрация:
    05-июля 15
  • Webmoney BL

Отправлено 05 июля 2015 — 14:51

Такая же ошибка. Сайт x-obmen.ru, вчера все работало — сегодня с утра постоянно это сообщение. Этот сайт действительно использует Cludflare.

Как решить эту проблему?

    • 0

  • Наверх

#13

Новичок

kylibin (WMID 411602673529 )

  • Группа:
    Пользователи
  • сообщений
    1
  • Регистрация:
    10-сентября 15
  • Webmoney BL

Отправлено 10 сентября 2015 — 15:55

та же проблема. не могу оплатить интернет.

    • 0

  • Наверх

#14

Новичок

230568694647 (WMID 230568694647 )

  • Группа:
    Пользователи
  • сообщений
    1
  • Регистрация:
    11-сентября 15
  • Webmoney BL

Отправлено 11 сентября 2015 — 00:57

выдаёт ошибку…. как быть ?? как решить эту проблему ? … помогите!

    • 0

  • Наверх

#15

Новичок

sura009 (WMID 423416188938 )

  • Группа:
    Пользователи
  • сообщений
    1
  • Регистрация:
    15-сентября 15
  • Webmoney BL

Отправлено 15 сентября 2015 — 13:47

видимо руководство ВМ экономит деньги на обновлении их IIS серверов которые не могут нормально коннектиться к сторонним серверам через современный защищенный протокол  tls и надежным механизмом обмена ключами, для того чтобы коннект долетал необходимо в конфиг веб сервера добавить устаревшый старый SSL Cipher Suite SHA1

    • 0

  • Наверх

#16

Участник

Help (WMID 994873465280 )

  • Группа:
    Пользователи
  • сообщений
    18
  • Регистрация:
    02-февраля 08
  • МестоположениеУкраина
  • Webmoney BL

Отправлено 11 мая 2016 — 13:09

Мир Вам!

Решение было?

У меня несколько дней как такая же ошибка. Клиенты не могут оплатить.

    • 0

  • Наверх

#17

Обычный пользователь, не сотрудник

AndrewTishkin (WMID 282697973392 )

Отправлено 11 мая 2016 — 14:58

У меня несколько дней как такая же ошибка.

CloudFlare используете? HTTPS используете?
«Proxy для Result URL» в настройках кошелька на мерчанте пробовали выбирать?

1zpt4647mzk.png.png Реферально-партнёрские ссылки и откровенная (само)реклама на форуме допускаются только в личной подписи :excl:

    • 0

  • Наверх

#18

Новичок

Galinam (WMID 204058965981 )

  • Группа:
    Пользователи
  • сообщений
    2
  • Регистрация:
    15-декабря 17
  • Webmoney BL

Отправлено 18 декабря 2017 — 10:27

когда уже ответят на мои вопросы? 

    • 0

  • Наверх

#19

Знаток

! добрый торговец ! (WMID 217358758215 )

  • Группа:
    Пользователи
  • сообщений
    9 785
  • Регистрация:
    18-мая 09
  • МестоположениеЭфиопия
  • Webmoney BL

Отправлено 18 декабря 2017 — 11:35

когда уже ответят на мои вопросы? 

Вы их задать попробуйте, для начала.

    • 0

  • Наверх

#20

Новичок

Gyulnara (WMID 400268912831 )

  • Группа:
    Пользователи
  • сообщений
    1
  • Регистрация:
    15-июня 15
  • Webmoney BL

Отправлено 01 марта 2020 — 18:44

У меня та же проблема. На Merchant в настройках кошелька нажимаю кнопку «Проверить» рядом с Result URL и получаю ошибку «An error occurred in the secure channel support», из-за этого пользователи моего сайта теперь не могут совершать оплату, они получают ту же ошибку (раньше всё было нормально). Сайт сейчас работает по HTTPS. Поддерживается шифрование TLS 1.2. Небезопасные и устаревшие протоколы шифрования TLS 1.0 и TLS 1.1 недавно были отключены. Может проблема в этом?

P.S Помогло добавление устаревших/слабых ssl_ciphers ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384

Видимо ничего из ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384 не поддерживается на WebMoney. Надеюсь специалисты WebMoney обновят своё старьё, и добавят поддержку этих более безопасных алгоритмов.

Сообщение отредактировал Gyulnara: 02 марта 2020 — 14:04

    • 0

  • Наверх

User avatar

TheDewd

Posts: 1498
Joined: 19 Dec 2013, 11:16
Location: USA

WinHttpRequest (An error occurred in the secure channel support)

I’m trying to use WinHttoRequest with POST but I keep receiving the error «An error occurred in the secure channel support».

Any ideas?

Code: Select all

#SingleInstance, Force
#Persistent

Data := "companyName=&address1=1600+Pennsylvania+Ave+NW&address2=&city=DC&state=WA&zip=20500"

WebRequest := ComObjCreate("WinHttp.WinHttpRequest.5.1")
WebRequest.Open("POST", "http://tools.usps.com/tools/app/ziplookup/zipByAddress")
WebRequest.SetRequestHeader("Host", "tools.usps.com")
WebRequest.SetRequestHeader("User-Agent", "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0")
WebRequest.SetRequestHeader("Accept", "application/json, text/javascript, */*; q=0.01")
WebRequest.SetRequestHeader("Accept-Language", "en-US,en;q=0.5")
WebRequest.SetRequestHeader("Accept-Encoding", "gzip, deflate, br")
WebRequest.SetRequestHeader("Referer", "https://tools.usps.com/zip-code-lookup.htm?byaddress")
WebRequest.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8")
WebRequest.SetRequestHeader("X-Requested-With", "XMLHttpRequest")
WebRequest.SetRequestHeader("Content-Length", StrLen(Data))
WebRequest.SetRequestHeader("DNT", "1")
WebRequest.SetRequestHeader("Connection", "keep-alive")
WebRequest.SetRequestHeader("Pragma", "no-cache")
WebRequest.SetRequestHeader("Cache-Control", "no-cache")

StrPut(Data, &Data, "", "UTF-8")

WebRequest.Send(Data)

Result := WebRequest.ResponseText

MsgBox, % Result

Code: Select all

---------------------------
New AutoHotkey Script.ahk
---------------------------
Error:  0x80072F7D - 
Source:		WinHttp.WinHttpRequest
Description:	An error occurred in the secure channel support


HelpFile:		(null)
HelpContext:	0

Specifically: Send

	Line#
	015: WebRequest.SetRequestHeader("X-Requested-With", "XMLHttpRequest")  
	016: WebRequest.SetRequestHeader("Content-Length", StrLen(Data))  
	017: WebRequest.SetRequestHeader("DNT", "1")  
	018: WebRequest.SetRequestHeader("Connection", "keep-alive")  
	019: WebRequest.SetRequestHeader("Pragma", "no-cache")  
	020: WebRequest.SetRequestHeader("Cache-Control", "no-cache")  
	022: StrPut(Data, &Data, "", "UTF-8")  
--->	024: WebRequest.Send(Data)  
	026: Result := WebRequest.ResponseText
	028: MsgBox,Result
	029: Exit
	030: Exit
	030: Exit

Continue running the script?
---------------------------
Yes   No   
---------------------------

tmplinshi

Posts: 1604
Joined: 01 Oct 2013, 14:57

Re: WinHttpRequest (An error occurred in the secure channel support)

19 Oct 2018, 16:28

Code: Select all

whr := ComObjCreate("WinHttp.WinHttpRequest.5.1")
whr.Open("POST", "https://tools.usps.com/tools/app/ziplookup/zipByAddress")
whr.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded")
whr.Send("companyName=&address1=1600+Pennsylvania+Ave+NW&address2=&city=DC&state=WA&zip=20500")
MsgBox % whr.ResponseText

User avatar

TheDewd

Posts: 1498
Joined: 19 Dec 2013, 11:16
Location: USA

Re: WinHttpRequest (An error occurred in the secure channel support)

21 Feb 2019, 12:22

jeeswg wrote:You could try this: oHTTP := ComObjCreate(«MSXML2.XMLHTTP.6.0»)

Code: Select all

Error:  0x80070005 - Access is denied.
Source:		msxml6.dll
Description:	Access is denied.


HelpFile:		(null)
HelpContext:	0

Specifically: Send

	Line#
	017: WebRequest.SetRequestHeader("X-Requested-With", "XMLHttpRequest")  
	018: WebRequest.SetRequestHeader("Content-Length", StrLen(Data))  
	019: WebRequest.SetRequestHeader("DNT", "1")  
	020: WebRequest.SetRequestHeader("Connection", "keep-alive")  
	021: WebRequest.SetRequestHeader("Pragma", "no-cache")  
	022: WebRequest.SetRequestHeader("Cache-Control", "no-cache")  
	024: StrPut(Data, &Data, "", "UTF-8")  
--->	026: WebRequest.Send(Data)  
	028: Result := WebRequest.ResponseText
	030: MsgBox,Result
	031: Exit
	032: Exit
	032: Exit

User avatar

TheDewd

Posts: 1498
Joined: 19 Dec 2013, 11:16
Location: USA

Re: WinHttpRequest (An error occurred in the secure channel support)

21 Feb 2019, 14:16

tank wrote:What OS / Browser are you using

Windows 7 Enterprise Service Pack 1 64-bit

Internet Explorer 11.0.9600.19236
Update Versions: 11.0.105 (KB4480965)

User avatar

tank

Posts: 3032
Joined: 28 Sep 2013, 22:15
Google: ttnnkkrr
GitHub: ttnnkkrr
Location: CarrolltonTX

Contact:

Re: WinHttpRequest (An error occurred in the secure channel support)

21 Feb 2019, 14:42

Sounds like a registry issue but i couldnt point to which key causes it

We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
https://www.facebook.com/ahkscript.org
If you have forum suggestions please submit a
Check Out WebWriter

User avatar

TheDewd

Posts: 1498
Joined: 19 Dec 2013, 11:16
Location: USA

Re: WinHttpRequest (An error occurred in the secure channel support)

21 Feb 2019, 16:00

@teadrinker,

Thanks! Unfortunately, I’m using a laptop provided by my workplace, and installing that application requires Administrator privileges that I don’t have.

I’m due for a new laptop soon, so hopefully that issue will already be patches on the new machine.

teadrinker

Posts: 3661
Joined: 29 Mar 2015, 09:41

Contact:

Re: WinHttpRequest (An error occurred in the secure channel support)

21 Feb 2019, 16:32

As I understand, the code must be like this:

Code: Select all

RunAsAdmin(true)
RegWrite, REG_DWORD, HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionInternet SettingsWinHttp, DefaultSecureProtocols, 2560
if A_Is64bitOS
   RegWrite, REG_DWORD, HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionInternet SettingsWinHttp, DefaultSecureProtocols, 2560

RunAsAdmin(exitIfNotAdmin)  {
   commandLine := DllCall("GetCommandLine", "str")
   isRestarted := !!RegExMatch(commandLine, " /restart(?!S)")
   
   while !( A_IsAdmin || isRestarted )  {
      try  {
         if A_IsCompiled
            Run *RunAs "%A_ScriptFullPath%" /restart
         else
            Run *RunAs "%A_AhkPath%" /restart "%A_ScriptFullPath%"
      }
      catch
         break 
      ExitApp
   }
   
   if !A_IsAdmin  {
      MsgBox, Failed to run the script as admin!
      if exitIfNotAdmin
         ExitApp
   }
}

Last edited by teadrinker on 21 Feb 2019, 16:37, edited 1 time in total.

User avatar

jeeswg

Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: WinHttpRequest (An error occurred in the secure channel support)

21 Feb 2019, 17:00

— I think the logic would be something like this (if 2 separate writes for 64-bit/32-bit are required):
— Note: I use exactly the same key name both times (I don’t use Wow6432Node).

Code: Select all

SetRegView, 64
if A_Is64bitOS
	RegWrite, REG_DWORD, HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionInternet SettingsWinHttp, DefaultSecureProtocols, 2560
SetRegView, 32
RegWrite, REG_DWORD, HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionInternet SettingsWinHttp, DefaultSecureProtocols, 2560

— [EDIT:] I think that teadrinker’s code would be fine also, assuming that the user hasn’t used SetRegView at an earlier point.

User avatar

SKAN

Posts: 1427
Joined: 29 Sep 2013, 16:58

WinHttpRequest (An error occurred in the secure channel support) in Win7 x64

15 May 2020, 05:51

I faced this problem today with our forum with WinHttpRequest
Tried to download search results in Win 7 x64
Note: UrlDownload works OK!

1) I installed kb3140245

System re-booted. Download didn’t work.

2) Installed MicrosoftEasyFix51044 available in support.microsoft.com

Download didn’t work.
I should have atleast logged-off and logged-in :(

3) Changed following keys with hex value of 800 (was A00)
HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionInternet SettingsWinHttpDefaultSecureProtocols
HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionInternet SettingsWinHttpDefaultSecureProtocols

I logged-off and logged-in
Download now worked.

I visted support.microsoft.com again and perused.

DefaultSecureProtocols Value Protocol enabled
0x00000008 Enable SSL 2.0 by default
0x00000020 Enable SSL 3.0 by default
0x00000080 Enable TLS 1.0 by default
0x00000200 Enable TLS 1.1 by default
0x00000800 Enable TLS 1.2 by default

For example:
The administrator wants to override the default values for WINHTTP_OPTION_SECURE_PROTOCOLS to specify TLS 1.1 and TLS 1.2.
Take the value for TLS 1.1 (0x00000200) and the value for TLS 1.2 (0x00000800), then add them together in calculator (in programmer mode), and the resulting registry value would be 0x00000A00.

So, I changed the values back to hex value A00
I logged-off and logged-in
Download now works.

I might have to re-install Win 7 in near future, so posting this as a backup.

PS: I don’t understand what B grade means: https://www.ssllabs.com/ssltest/analyze.html?d=www.autohotkey.com

My Scripts and Functions: V1  V2


Return to “Ask for Help”

I have a code in VBA that worked perfectly for a long time. Suddenly it stopped working for no reason. Nothing has changed on my side.

I use it to download web pages and store them in strings like this:

Function something() As String
URL = "www..."
Set XMLHTTP = CreateObject("WinHttp.WinHttpRequest.5.1")
XMLHTTP.Open "GET", URL, False
XMLHTTP.send
something = XMLHTTP.responseText
End Function

at XMLHTTP.send I get the following error:
Run-time error ‘-2147012739 (80072f7d)’: An error occurred in the secure channel support

Whats is the meaning of this error and what can be done?

I tried reading about it but it seems that its a generic error and could be many things. Perhaps Microsoft changed some protocols or something similar?

asked May 18, 2017 at 10:30

David912's user avatar

7

I had this same error:
6/30/2018

I’m running Excel on windows 7,

On a Mac, In Parallels.

This was a very simple fix.

Goto Control Panel,

Click Network and Internet,

Click Network and Sharing Center,
(at the Bottom Left CLICK Internet Options)

Internet Properties Dialog Box will come up,
Click the Advanced Tab

Scroll to bottom and turn on «Use TLS1.2»
(Mine was already Set Prior to receiving the Error)
Click Apply

Here is the link to the downloads need for the proper Windows OS Update file:
http://www.catalog.update.microsoft.com/search.aspx?q=kb3140245

I downloaded and Installed the UpDate from Windows Explorer (File Manager)
Restarted Windows

and ran the VBA.
It ran perfectly

Thanks to Srinath Gudimetla see his link is below for full details:
https://www.linkedin.com/pulse/working-vba-tls-protocol-srinath-gudimetla

answered Jun 30, 2018 at 22:14

KarlH7's user avatar

KarlH7KarlH7

911 silver badge3 bronze badges

2

Using WinHttpRequest to check whether a able to connect to a remote server.
Code was working earlier however recently getting following error:

«An error occurred in the secure channel support»

tested in Excel 2016 32bit, in Windows 10.

Gone though similar issues, it seems TLS 1.2 is not enabled. However also states in Windows 10 it is enabled by default. Not getting exact place how to check whether it is enabled or not or is the issue is because of this.

VBA: An error occurred in the secure channel support
https://support.microsoft.com/en-in/help/4040243/how-to-enable-tls-1-2-for-configuration-manager
https://www.itnota.com/enabling-tls-1-2-default-security-protocol-windows-servers/

 
    Dim request As New WinHttpRequest

    On Error GoTo ConnectionError
    request.Open "GET", url
    request.setRequestHeader "Authorization", "Basic " + sEncryptedPassword
    request.Send
    IsConnectionAvailable = request.Status


Expected output to be connection should be successful, however getting error
«An error occurred in the secure channel support»

Using WinHttpRequest to check whether a able to connect to a remote server.
Code was working earlier however recently getting following error:

«An error occurred in the secure channel support»

tested in Excel 2016 32bit, in Windows 10.

Gone though similar issues, it seems TLS 1.2 is not enabled. However also states in Windows 10 it is enabled by default. Not getting exact place how to check whether it is enabled or not or is the issue is because of this.

VBA: An error occurred in the secure channel support
https://support.microsoft.com/en-in/help/4040243/how-to-enable-tls-1-2-for-configuration-manager
https://www.itnota.com/enabling-tls-1-2-default-security-protocol-windows-servers/

 
    Dim request As New WinHttpRequest

    On Error GoTo ConnectionError
    request.Open "GET", url
    request.setRequestHeader "Authorization", "Basic " + sEncryptedPassword
    request.Send
    IsConnectionAvailable = request.Status


Expected output to be connection should be successful, however getting error
«An error occurred in the secure channel support»

Обновлено 28.11.2022

directum logoДобрый день! Уважаемые читатели и гости IT портала Pyatilistnik.org. В прошлый раз мы с вами решали проблему, когда у нас тормозил Directum на терминальной ферме. В сегодняшней ситуации я опять вернусь к данному программному обеспечению и покажу, что мне удалось раскопать в ситуации, что при попытке создать договорной документ и выбрать его из конструктора документов, я получаю предупреждение «Ошибка поддержки безопасных каналов«. Давайте смотреть в чем дело и что можно поменять, чтобы все заработало.

Устранение ошибки поддержки безопасных каналов

Данную проблему я поймал в Directum на своей RDS-ферме. Стало увеличиваться количество обращений со стороны пользователей, что они при попытке создания договорного документа стали видеть ошибку:

Ошибка поддержки безопасных каналов

Ошибка поддержки безопасных каналов

В логах просмотра событий я ничего толково не обнаружил, начал копать дальше.

  • 1️⃣В интернете все копипастят друг у друга, что в данной ситуации помогает включение TLS, но я проверил и правки в реестре не дают ничего, тем более у меня уже они были активированы, я с этим еще сталкивался, когда получал ошибку «Unable to resolve package source» при установке модуля PowerShell.
  • 2️⃣Далее если у вас есть антивирусное решение, то я вам советую его отключить на время, пока будите производить тестирование. Антивирус Касперского тут так же был ни причем
  • 3️⃣Далее, что я обычно проверяю, это не производилась ли установка нового софта или обновлений Windows. Обязательно выведите список установленных программ и посмотрите, нет ли там чего-то нового. Бывает ситуация, что некоторые программы могут конфликтовать при совместном использовании, например очень частая ситуация с КриптоПРО, старыми версиями. Если она есть, то попробуйте ее удалить.
  • 4️⃣Проверьте не было ли установки новых обновлений, это можно посмотреть в истории параметров Windows или в оснастке appwiz.cpl.

История установки обновлений Windows Server 2019

В результате на Windows Server прилетело KB5018411 на клиентские Windows 10 и Windows 11 прилетело kb5018410, что в итоге делать, на текущий момент просто удалять и ждать новых обновлений от Microsoft.

Если у вас есть поддержка от Directum, то стоит задать вопрос туда возможно. что-то подскажут, у меня такой возможности нет

Чтобы удалить KB5018411  я воспользуюсь командной строкой и утилитой wusa. Введите:

wusa /uninstall /kb:5018411

У вас выскочит окно с подтверждением удаления данного обновления. Нажмите ок, начнется процесс.

Удаление обновления Windows через WUSA

Так же вы можете сделать, и тихое удаление добавим ключи: /quiet /norestart

wusa /uninstall /kb:5018411 /quiet /norestart

Удаление автономного пакета Windows

После этого мой Directum заработал, посмотрю что будет со следующими обновлениями, может Mixrosoft пофиксит это.

Обновление 28.11.2022

Как и ожидалось, данная ошибка была устранена установкой ноябрьских обновлений KB5019964. С вами был Иван Семин, автор и создатель IT проекта Pyatilistnik.org.

Цитата:

MWWRuza ➤ Отправляю GET запрос

Откуда отправляешь? это не какое-то старое … которое с сертификатами не дружит?
Решил погуглить… так и есть

Как оказалось, далеко не все знают, что причина этих ошибок кроется в обновлении протокола шифрования на стороне сайта. Сейчас повсеместно начинает использоваться протокол TLS версии 1.2, поддержка которого в 1С полноценно начата с релиза 8.3.9

Поэтому для тех, кто использует встроенные средства 1С для работы с сайтом, достаточно обновить релиз 1С предприятия, и проблема решится сама собой.

Но часто мне попадаются обработки работы с сайтом, которые используют средства Windows: объекты класса «WinHTTP.WinHTTPRequest.5.1» или «MSXML2.ServerXMLHTTP.6.0» и т.п. В этом случае необходимо активировать поддержку протокола TLS 1.2 в самой Windows.

Для этого достаточно внести в реестр следующие записи, после чего перезагрузить Windows:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSecurityProvidersSCHANNELProtocolsTLS 1.2]

[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSecurityProvidersSCHANNELProtocolsTLS 1.2Client]
«DisabledByDefault»=dword:00000000
«Enabled»=dword:00000001

[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSecurityProvidersSCHANNELProtocolsTLS 1.2Server]
«DisabledByDefault»=dword:00000000
«Enabled»=dword:00000001

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionInternet SettingsWinHttp]
«DefaultSecureProtocols»=dword:00000800

[HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionInternet SettingsWinHttp]
«DefaultSecureProtocols»=dword:00000800

Небольшое замечание к двум последним параметрам. В указанном коде указано значение 00000800 — это значение активирует протокол TLS 1.2 по умолчанию. Если необходимо использовать TLS 1.1 то значение необходимо заменить на 00000200, а если оба протокола, то на 00000A00.

  • Remove From My Forums

locked

Ошибка поддержки безопасных каналов

  • Question

  • WinHttp.WinHttpRequest: Ошибка поддержки безопасных каналов

    После очередного обновления перестал работать скрипт отправляющий смски Как починить?

Answers

  • КриптоПро стоит у Вас? Если да, то удаляем и проверяем

    что вы обновляли?

    • Edited by

      Tuesday, March 3, 2015 1:23 PM

    • Proposed as answer by
      Dmitriy VereshchakMicrosoft contingent staff
      Thursday, March 5, 2015 11:33 AM
    • Marked as answer by
      Dmitriy VereshchakMicrosoft contingent staff
      Thursday, March 5, 2015 1:56 PM
  • Возможно банальная переустановка / обновление крипто про поможет.

    • Proposed as answer by
      Dmitriy VereshchakMicrosoft contingent staff
      Thursday, March 5, 2015 11:33 AM
    • Marked as answer by
      Dmitriy VereshchakMicrosoft contingent staff
      Thursday, March 5, 2015 1:56 PM

When you are presented with a error as the following:

«Download failed: An error occurred in the secure channel support»

mceclip0.png

Please, check if you have checked this option in your Internet Properties in your Control Panel.

If you have it unchecked, check it, clicked OK and tried the installation again.

  • Remove From My Forums

 locked

An error occurred in the secure channel support 0x80072f7d — Win 10 1803 request certificate from 2012 R2 CA

  • Вопрос

  • Windows 10 17134.48 Pro Education client domain joined (client certificates issued OK)

    Trying to obtain Remote Desktop certificate (from template that works fine)

    I get the error

    Service is working fine & I get (expected)

    401 — Unauthorized: Access is denied due to invalid credentials.

    if I try to access it from browser session

    Any idea what that is?

    I already used IIS Crypto 2 for Best Practices (on both client and server)

    Seb

  • Ошибка an error has occurredjsplugin 3005
  • Ошибка an error has occurred перевод
  • Ошибка an error has occurred while updating the device software
  • Ошибка amp error на пионере
  • Ошибка among us при создании аккаунта произошла ошибка googleauthnotoken