Twinhttp ошибка при отправке запроса secure failure


Offline

KakPo4initECP

 


#1
Оставлено
:

24 апреля 2019 г. 9:36:52(UTC)

KakPo4initECP

Статус: Новичок

Группы: Участники

Зарегистрирован: 24.04.2019(UTC)
Сообщений: 1
Российская Федерация
Откуда: Красноярск

Не работает ЭЦП.
История следующая :
Есть рабочий ноутбук с Win10, на нем стоит ЭТРАН (ЖД програмулина) плюс ЭДО. Так же имеется КриптоПРО 3.9 и VipnetCSP (Без него не работает ЭТРАН).
На Випнете истек срок действия ключей, после чего последовала переустановка всей системы с нуля.
На данный момент установлен КриптоПРО 3.9 с пожизненной лицензией,Vipnet CSP, ЭТРАН, ЭДО. Подпись не работает нигде.
При попытке подписания в ЭДО выдает ошибку :

«Не удалось проверить цепочку сертификатов, возможно не установлена актуальная цепочка сертификатов» И «Подробности: Функция отзыва не смогла произвести проверку отзыва для сертификата»

При попытке подписания в ЭТРАНе выдает ошибку :

Ошибка безопасности. Проверьте правильность установки криптопро 2.0. Недопустимая строка с указание класса.

Утилита для тестирования всего ПК на предмет правильности установки и настройки всех параметров выдает следующие ошибки:

Проверка SSL соединения с pkitrans.ru
TWinHTTP: Ошибка при отправке запроса (SECURE_FAILURE).
Попробуйте заново повторить операцию.
sent=0recived=0
Ошибка LE № 0x2f8f: Произошла ошибка безопасности
(0x2f8f) (pkitrans.ru:ping) so: 3300

Проверка посылки данных через SSL соединение
TWinHTTP: Ошибка при отправке запроса (SECURE_FAILURE).
Попробуйте заново повторить операцию.
sent=0recived=0
Ошибка LE № 0x2f8f: Произошла ошибка безопасности
(0x2f8f) (pkitrans.ru:ping) so: 3300
Filed to send data block with length: 100
times: 0,0,0,0,0,0,0,0,0,0

Тестовая подпись
SignLow. Невозможно создать криптографическое сообщение. CryptMsgOpenToEncode failed.
Ошибка LE № 0x80070057: Параметр задан неверно.

Тест CAPICOM
Ошибка подписи CAPICOM: Неизвестная ошибка формирования подписи CAPICOM.
Ошибка LE № 0x36b7: Указанный ключ соответствия не обнаружен ни в одном из активных контекстов активации.

Проверка TSP
Create_TimeStamp. Неизвестная ошибка.

Проверка OCSP
Недопустимая строка с указанием класса
Ошибка LE № 0x36b7: Указанный ключ соответствия не обнаружен ни в одном из активных контекстов активации.


Вверх


Offline

Андрей Писарев

 


#2
Оставлено
:

25 апреля 2019 г. 0:51:03(UTC)

Андрей *

Статус: Сотрудник

Группы: Участники

Зарегистрирован: 26.07.2011(UTC)
Сообщений: 12,124
Мужчина
Российская Федерация

Сказал «Спасибо»: 460 раз
Поблагодарили: 1947 раз в 1505 постах

Здравствуйте.

Какие версии продуктов используете (полностью версию напишите)?

Рекомендуется использовать актуальные версии криптопровайдеров.

Для чего установлены КриптоПРО CSP и ViPNet CSP в одной ОС?
Сертификат — выдан для использования в КриптоПРО CSP?
Если Да — какую роль играет ViPNet CSP?

Если требуется ViPNet CSP — можете получить сертификат и использовать только ViPNet CSP, без установки КриптоПРО CSP?

Техническую поддержку оказываем тут
Наша база знаний


Вверх

WWW


Offline

goker08

 


#3
Оставлено
:

29 апреля 2019 г. 23:13:53(UTC)

goker08

Статус: Новичок

Группы: Участники

Зарегистрирован: 29.04.2019(UTC)
Сообщений: 1

Добрый день!
Аналогичная ситуация. Win 10
Используем CryptoPro CSP v3.9.8495 и VIPNet Client 4.5(1.54685)
В АРМ Этран при попытке подписания выдает ошибку
«Ошибка безопасности. проверьте правильность установки CryptoPro 2.0
Текст ошибки:
Недопустимая строка с указанием класса
Stack trace
00000000 ???
4005ad71 Vcl50.bpl Forms TApplication.HandleException
77ac2931 ntdll.dll KiUserExceptionDispatcher
40003e93 Vcl50.bpl System @AfterConstruction
4006b952 Vcl50.bpl Controls TControl.Click
400a562c Vcl50.bpl Comctrls TToolButton.Click
4006bd32 Vcl50.bpl Controls TControl.WMLButtonUp
4006b7c1 Vcl50.bpl Controls TControl.WndProc
4006b608 Vcl50.bpl Controls TControl.Perform
4006e190 Vcl50.bpl Controls TWinControl.IsControlMouseMsg
4006e28c Vcl50.bpl Controls TWinControl.WndProc
400a9339 Vcl50.bpl Comctrls TToolBar.WndProc
4006b608 Vcl50.bpl Controls TControl.Perform
400a72db Vcl50.bpl Comctrls TToolBar.UpdateButtonState
400a731e Vcl50.bpl Comctrls TToolBar.UpdateButtonStates
4006df78 Vcl50.bpl Controls TWinControl.MainWndProc
7621bb3b user32.dll DispatchMessageA
4005aa87 Vcl50.bpl Forms TApplication.ProcessMessage
4005aabe Vcl50.bpl Forms TApplication.HandleMessage
4005acc9 Vcl50.bpl Forms TApplication.Run
77150417 KERNEL32.DLL BaseThreadInitThunk
EndOf Stack trace
«


Вверх


Offline

Андрей Писарев

 


#4
Оставлено
:

30 апреля 2019 г. 0:01:18(UTC)

Андрей *

Статус: Сотрудник

Группы: Участники

Зарегистрирован: 26.07.2011(UTC)
Сообщений: 12,124
Мужчина
Российская Федерация

Сказал «Спасибо»: 460 раз
Поблагодарили: 1947 раз в 1505 постах

Автор: goker08 Перейти к цитате

Добрый день!
Аналогичная ситуация. Win 10
Используем CryptoPro CSP v3.9.8495 и VIPNet Client 4.5(1.54685)
В АРМ Этран при попытке подписания выдает ошибку
«Ошибка безопасности. проверьте правильность установки CryptoPro 2.0
Текст ошибки:
Недопустимая строка с указанием класса
Stack trace
00000000 ???
4005ad71 Vcl50.bpl Forms TApplication.HandleException
77ac2931 ntdll.dll KiUserExceptionDispatcher
40003e93 Vcl50.bpl System @AfterConstruction
4006b952 Vcl50.bpl Controls TControl.Click
400a562c Vcl50.bpl Comctrls TToolButton.Click
4006bd32 Vcl50.bpl Controls TControl.WMLButtonUp
4006b7c1 Vcl50.bpl Controls TControl.WndProc
4006b608 Vcl50.bpl Controls TControl.Perform
4006e190 Vcl50.bpl Controls TWinControl.IsControlMouseMsg
4006e28c Vcl50.bpl Controls TWinControl.WndProc
400a9339 Vcl50.bpl Comctrls TToolBar.WndProc
4006b608 Vcl50.bpl Controls TControl.Perform
400a72db Vcl50.bpl Comctrls TToolBar.UpdateButtonState
400a731e Vcl50.bpl Comctrls TToolBar.UpdateButtonStates
4006df78 Vcl50.bpl Controls TWinControl.MainWndProc
7621bb3b user32.dll DispatchMessageA
4005aa87 Vcl50.bpl Forms TApplication.ProcessMessage
4005aabe Vcl50.bpl Forms TApplication.HandleMessage
4005acc9 Vcl50.bpl Forms TApplication.Run
77150417 KERNEL32.DLL BaseThreadInitThunk
EndOf Stack trace
«

Здравствуйте.

Обратитесь в тех.поддержку этого АРМ.

Цитата:

Недопустимая строка с указанием класса

Вероятно выполняется попытка вызвать COM-объект, который не зарегистрирован в системе.
Более того, сообщение про «проверьте правильность установки CryptoPro 2.0» вызывает вопрос об актуальности версии данного ПО (АРМ).

Техническую поддержку оказываем тут
Наша база знаний


Вверх

WWW

Пользователи, просматривающие эту тему

Guest

Быстрый переход
 

Вы не можете создавать новые темы в этом форуме.

Вы не можете отвечать в этом форуме.

Вы не можете удалять Ваши сообщения в этом форуме.

Вы не можете редактировать Ваши сообщения в этом форуме.

Вы не можете создавать опросы в этом форуме.

Вы не можете голосовать в этом форуме.

  • Remove From My Forums
  • Вопрос

  • Почта Outlook Express 6.

    При отправке и получении почты с некоторых компьютеров на внешний почтовый сервер все время получаю сообщение об ошибке:

    Соединение было неожиданно прервано сервером. Возможными причинами этого являются сбои на сервере, сбои сети или длительное отсутствие активности. Учетная запись: ‘Внешняя’, Сервер: ‘mail.skpp.ru’, Протокол: SMTP, Порт: 25, Защита (SSL): Нет, Код ошибки: 0x800CCC0F

    В той-же сети и в то-же самое время с других компьютеров с теми же настройками все работает без проблем! Настройки учетной записи в Outlook Express переносил с помощью функций Экспорт — Импорт. Не помогает.

    В чем может быть проблема?

Ответы

#1 2014-10-21 13:42:48

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 13,951
Website

Debugging with TWinHTTP and SSL certificates

This is an EMartin’s post I deleted in a today’s thread.
sad

The source code of a whole SynCrtSock.pas unit was posted in the message!
This made our forum just unstable.
Please do not post such huge piece of code in the forum.
The easiest is to use either a PasteBin server, or a public GoogleDrive storage, or send an email to me.
Or even better, the best way in Open Source is to fork our repository e.g. on https://github.com/synopse/mORMot and push your patch.

Original message:

EMartin wrote:

Hi Arnaud,
   For high load testing I developed an application using TWinHTTP on the client side, when implementing SSL in TSQLRestServer I found a problem with TWinHTTP and SSL for my untrusted certificate (WinHTTP error 12175=Secure Failure). In browsers this can be  added as exception, but with TWinHTTP I had touch the SynCrtSock.pas. The following code is the modified SynCrtSock.pas, my modifications are between «//>>EMartin» (open) and «//<<EMartin» (close). If you feel that serves, can you add this modifications to the SynCrtSock.pas?. Or letting me know that otherwise I can arrive the same result.
I used {$define IGNORESSLCERT} but TWinHTTP property may be best place or as parameter for requests (but the options can be to sesion level).
Based on revision [228f62000f]

I modified the supplied patch, to http://synopse.info/fossil/info/3d7ebe536a

Thanks for the idea and feedback, EMartin!
smile

#2 2014-10-21 13:47:02

EMartin
Member
From: Buenos Aires — Argentina
Registered: 2013-01-09
Posts: 332

Re: Debugging with TWinHTTP and SSL certificates

Pardon and my sincerest apologies.

I’ll have into account its recommendations.

Thanks.

#3 2014-10-21 13:47:38

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 13,951
Website

Re: Debugging with TWinHTTP and SSL certificates

No problem!
smile

I hope the new TWinHTTP.IgnoreSSLCertificates property works as expected for you.

#4 2014-10-21 15:21:24

EMartin
Member
From: Buenos Aires — Argentina
Registered: 2013-01-09
Posts: 332

Re: Debugging with TWinHTTP and SSL certificates

Is not working because IgnoreSSLCertificates is a property of an object and is not transferred to created instance in class functions. I did make  for my testing purpose in SynCrtSock.pas. The same is a dirty trick, I change the object property IgnoreSSLCertificates to class property.

  TWinHTTP = class(TWinHttpAPI)
  private
    class function GetIgnoreSSLCertificates: Boolean;
    class procedure SetIgnoreSSLCertificates(const Value: Boolean);
  ...
    /// allows to ignore untrusted SSL certificates
    // - similar to adding a security exception for a domain in the browser
    property IgnoreSSLCertificates: boolean
      read GetIgnoreSSLCertificates write SetIgnoreSSLCertificates;
end;

after implementation (line 1350):

threadvar
  TWinHTTP_IgnoreSSLCertificates: Boolean;

...

class function TWinHTTP.GetIgnoreSSLCertificates: Boolean;
begin
  Result := TWinHTTP_IgnoreSSLCertificates;
end;

...

procedure TWinHTTP.InternalSendRequest(const aData: RawByteString);
var L: integer;
begin
  if fHTTPS and GetIgnoreSSLCertificates then 
    if not WinHttpSetOption(fRequest, WINHTTP_OPTION_SECURITY_FLAGS,
       @SECURITY_FLAT_IGNORE_CERTIFICATES, SizeOf(SECURITY_FLAT_IGNORE_CERTIFICATES)) then
      RaiseLastModuleError(winhttpdll,EWinHTTP);
  L := length(aData);
  if not WinHttpSendRequest(fRequest, nil, 0, pointer(aData), L, L, 0) or
     not WinHttpReceiveResponse(fRequest,nil) then
    RaiseLastModuleError(winhttpdll,EWinHTTP);
end;

...

class procedure TWinHTTP.SetIgnoreSSLCertificates(const Value: Boolean);
begin
  TWinHTTP_IgnoreSSLCertificates := Value;
end;

...

And I removed the fIgnoreSSLCertificates.

I am sure that you will implement the best solution.

Thanks.

#5 2014-10-21 16:51:43

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 13,951
Website

Re: Debugging with TWinHTTP and SSL certificates

In my implementation, you just have to set the TWinHttp.IgnoreSSLCertificates property just after create, and before using it.

I do not see any problem with that.
This is how we usually set timeout parameters and so on for a TSQLHTTPClient instance.

#6 2014-10-21 17:23:28

EMartin
Member
From: Buenos Aires — Argentina
Registered: 2013-01-09
Posts: 332

Re: Debugging with TWinHTTP and SSL certificates

I did that, but en class function TWinHTTPAPI.Get/Post … call to class function TWinHTTPAPI.InternalRest:

class function TWinHttpAPI.InternalREST(const url,method,data,header: RawByteString): RawByteString;
var URI: TURI;
    outHeaders: RawByteString;
begin
  result := '';
  with URI do
  if From(url) then
  try                                      //*****************************************************
    with self.Create(Server,Port,Https) do // --> new instance and fIgnoreSSLCertificates if False
    try                                    //*****************************************************
      Request(Address,method,0,header,data,'',outHeaders,result);
    finally
      Free;
    end;
  except
    result := '';
  end;
end;

By this I implemented the pseudo class property. I hope can you understand me.

Thanks.

#7 2014-10-21 20:09:53

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 13,951
Website

Re: Debugging with TWinHTTP and SSL certificates

Just add the missing parameter in InternalREST() method.

But a global variable to set a per-connection property is IMHO a very wrong idea.

#8 2014-10-21 20:35:03

EMartin
Member
From: Buenos Aires — Argentina
Registered: 2013-01-09
Posts: 332

Re: Debugging with TWinHTTP and SSL certificates

I know that is bad idea the global variable. Just I didn’t want to have my own version of SynCrtSock.pas. I will add the parameter to TWinHTTP constructor and the class functions GET/POST/InternalRest/etc, if you want I put this in GitHub.

Bye.

#9 2014-10-21 22:01:55

EMartin
Member
From: Buenos Aires — Argentina
Registered: 2013-01-09
Posts: 332

Re: Debugging with TWinHTTP and SSL certificates

Hi Arnaud, I put the SynCrtSock.pas modified in GitHub and the pull request is https://github.com/synopse/mORMot/pull/5

Check and merge if you consider that modifications are right.

Best regards.

for the code below, it catches an HttpRequestException/ System.Net.Http.WinHttpException when called

the exception states:

NativeErrorCode 12175   
Message "A security error occurred"

-       e   {System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpException: A security error occurred
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at System.Net.Http.WinHttpHandler.<StartRequest>d__105.MoveNext()
   --- End of inner exception stack trace ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at System.Net.Http.HttpClient.<FinishSendAsync>d__58.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Controllers.Controller.<Get>d__0.MoveNext() 

but using Postman on the same endpoint, resource, headers and body, I get a 200 back.

POST /account/ HTTP/1.1
Host: test-org.com
X-HTTP-Method-Override: GET
Content-Type: application/xml
Cache-Control: no-cache
Postman-Token: ce565d1a-bfb7-0961-ffd7-d279b90e97c5

<?xml version="1.0" encoding="UTF-8"?>
<accountMessage xmlns="http://sdfssd
........
</accountMessage>

when I do a google search for NativeErrorCode 12175 .NET, i find this:
https://msdn.microsoft.com/en-us/library/windows/desktop/aa383770(v=vs.85).aspx

ERROR_WINHTTP_SECURE_FAILURE
12175
One or more errors were found in the Secure Sockets Layer (SSL) certificate sent by the server. To determine what type of error was encountered, check for a WINHTTP_CALLBACK_STATUS_SECURE_FAILURE notification in a status callback function. For more information, see WINHTTP_STATUS_CALLBACK.

Code that’s broken:

// GET: api/Accounts
[HttpGet]
public async Task<IActionResult> Get()
{
    try
    {
        using (var client = new HttpClient())
        {
            try
            {
                client.BaseAddress = new Uri("https://test-org.com/");
                HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Post, "account");
                request.Content = new StringContent("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<accountMessage xml...</accountMessage>",Encoding.UTF8,"application/xml");

                request.Headers.Add("X-HTTP-Method-Override", "GET");
                var response = await client.SendAsync(request);

                response.EnsureSuccessStatusCode(); 
                var stringResponse = await response.Content.ReadAsStringAsync();
                var posts = JsonConvert.DeserializeObject<IEnumerable<Post>>(stringResponse);

                if (posts == null) return NotFound($"Posts were not found");
                return Ok(posts);
            }
            catch (HttpRequestException e)
            {
                Console.WriteLine($"Request exception: {e.Message}");
            }
        }
    }
    catch (Exception)
    {

    }
    return BadRequest();
}

What is Error 12175?

Error 12175 is a kind of Runtime error that is found in the Microsoft Windows operating systems. The file can be found for TeamViewer. ERROR_WINHTTP_SECURE_FAILURE has a popularity rating of 1 / 10.

Errors

This tutorial contains information on Error 12175 or otherwise known as ERROR_WINHTTP_SECURE_FAILURE. Errors such as ERROR_WINHTTP_SECURE_FAILURE indicate your machine has faulty hardware or software that should be fixed when possible. Below is information on how to repair Error 12175 and get your computer back to normal.

Megaphone Signs of Error 12175:

  • When your computer freezes or locks up at random.
  • When your computer crashes when you are running TeamViewer.
  • If ERROR_WINHTTP_SECURE_FAILURE pops up and causes a program to shutdown or your computer to crash.
  • Your computer is running slow, taking a long time to boot up, and you suspect Error 12175 by TeamViewer is the cause.

What Causes Runtime Errors Like Error 12175?

There are several causes of runtime errors like ERROR_WINHTTP_SECURE_FAILURE, such as viruses, out of date drivers, missing files or folders, incomplete or poor installation, and registry errors. They can also occur due to an issue with the computer’s memory, which may often be due to a hardware problem. In some cases there was an issue installing TeamViewer and an error occurred.

Fix How to Fix ERROR_WINHTTP_SECURE_FAILURE

Follow the step by step instructions below to fix the Error 12175 problem. We recommend you do each in order. If you wish to skip these steps because they are too time consuming or you are not a computer expert, see our easier solution below.

Step 1 — Uninstall and Reinstall TeamViewer

If the ERROR_WINHTTP_SECURE_FAILURE is a result of using TeamViewer, you may want to try reinstalling it and see if the problem is fixed. Please follow these steps:

Windows XP

  1. Click “Start Menu”.
  2. Click “Control Panel”.
  3. Select the “Add or Remove” program icon.
  4. Find the Error 12175 associated program.
  5. Click the Change/Remove button on the right side.
  6. The uninstaller pop up will give you instructions. Click “okay” or “next”  or “yes” until it is complete.
  7. Reinstall the software.

Windows 7 and Windows Vista

  1. Click “Start Menu”.
  2. Click “Control Panel”.
  3. Click “Uninstall a Program” which is under the “Programs” header.
  4. Find the Error 12175 associated program.
  5. Right click on it and select “Uninstall”.
  6. The uninstaller pop up will give you instructions. Click “okay” or “next”  or “yes” until it is complete.
  7. Reinstall the software and run the program.

Windows 8, 8.1, and 10

  1. Click “Start Menu”.
  2. Click “Programs and Features”.
  3. Find the software that is linked to **insert file name**.
  4. Click Uninstall/Change.
  5. The uninstaller will pop up and give you instructions. Click “okay” and “next” until it is complete.
  6. Restart your computer.
  7. Reinstall the software and run the program.

Step 2 — Remove Registry Entry related to Error 12175

Warning WARNING: Do NOT edit the Windows Registry unless you absolutely know what you are doing. You may end up causing more trouble than you start with. Proceed at your OWN RISK.

  1. Create a backup of registry files.
  2. Click “Start”.
  3. Type regedit, select it, and grant permission in order to proceed.
  4. Click HKEY LOCAL MACHINE>>SOFTWARE>>Microsoft>>Windows>>Current Version>>Uninstall.
  5. Find the ERROR_WINHTTP_SECURE_FAILURE software from the list you wish to uninstall.
  6. Select the software and double click the UninstallString icon on the right side.
  7. Copy the highlighted text.
  8. Exit and go to the search field.
  9. Paste the data.
  10. Select Okay in order to uninstall the program.
  11. Reinstall the software.

Step 3 – Ensure Junk Isn’t Causing ERROR_WINHTTP_SECURE_FAILURE

Any space that isn’t regularly cleaned out tends to accumulate junk. Your personal computer is no exception. Constant web browsing, installation of applications, and even browser thumbnail caches slow down your device and in the absence of adequate memory, can also trigger a ERROR_WINHTTP_SECURE_FAILURE error.

So how do you get around this problem?

  • You can either use the Disk Cleanup Tool that comes baked into your Windows operating system.
  • Or you can use a more specialized hard drive clean up solution that does a thorough job and flushes the most stubborn temporary files from your system.

Both solutions may take several minutes to complete the processing of your system data if you haven’t conducted a clean up in a while.
The browser caches are almost a lost cause because they tend to fill up quite rapidly, thanks to our constantly connected and on the go lifestyle.
Here’s how you can run the Window’s Disk Cleanup Tool, without performance issues or surprises.

  • For Windows XP and Windows 7, the program can be ran from “Start” and from the “Command Prompt”.
    • Click “Start”, go to All Programs > Accessories > System Tools, click Disk Cleanup. Next choose the type of files you wish to remove, click OK, followed by “Delete Files”.
    • Open up the Command Prompt, type “c:\windows\cleanmgr.exe /d” for XP and “cleanmgr” for Windows 7. Finish by pressing “Enter”.
  • For Windows 8 and Windows 8.1, the Disk Cleanup Tool can be accessed directly from “Settings”. Click “Control Panel” and then “Administrative Tools”. You can select the drive that you want to run the clean up on. Select the files you want to get rid of and then click “OK” and “Delete Files”.
  • For Windows 10, the process is simplified further. Type Disk Cleanup directly in the search bar and press “Enter”. Choose the drive and then the files that you wish to wipe. Click “OK”, followed by “Delete Files”.

The progressive ease with which the Cleanup Tool can be used points to the growing importance of regularly deleting temporary files and its place in preventing ERROR_WINHTTP_SECURE_FAILURE.

Warning PRO TIP:
Remember to run the Disk Cleanup as an administrator.


Step 4 – Fix Infections and Eliminate Malware in Your PC

How do you gauge if your system is infected with a malware and virus?

Well, for one, you may find certain applications misbehaving.

And you may also see the occurrence of Error 12175.

Infections and malware are the result of:

  • Browsing the Internet using open or unencrypted public Wi-Fi connections
  • Downloading applications from unknown and untrustworthy sources
  • Intentional planting of viruses in your home and office networks

But thankfully, their impact can be contained.

  • Enter “safe mode” by pressing the F8 key repeatedly when your device is restarting. Choose “Safe Mode with Networking” from the Advanced Boot Options menu.
  • Back up all the data in your device to a secure location. This is preferably a storage unit that is not connected to your existing network.
  • Leave program files as is. They are where the infection generally spreads from and may have been compromised.
  • Run a thorough full-system scan or check of an on-demand scanner. If you already have an antivirus or anti-malware program installed, let it do the heavy lifting.
  • Restart your computer once the process has run its course.
  • Lastly, change all your passwords and update your drivers and operating system.

Warning PRO TIP: Are you annoyed by the frequent updates to your antivirus program? Don’t be! These regular updates add new virus signatures to your software database for exponentially better protection.


Step 5 – Return to the Past to Eliminate Error 12175

The steps outlined up until this point in the tutorial should have fixed ERROR_WINHTTP_SECURE_FAILURE error. But the process of tracking what has caused an error is a series of educated guesses. So in case the situation persists, move to Step 5.

Windows devices give users the ability to travel back in time and restore system settings to an uncorrupted, error free state.
This can be done through the convenient “System Restore” program. The best part of the process is the fact that using System Restore doesn’t affect your personal data. There is no need to take backups of new songs and pictures in your hard drive.

  • Open “Control Panel” and click on “System & Security”.
  • Choose the option “System”.
  • To the left of the modal, click on “System Protection”.
  • The System Properties window should pop-up. You’ll be able to see the option “System Restore”. Click on it.
  • Go with “Recommended restore” for the path of least hassles and surprises.
  • Choose a system restore point (by date) that will guarantee taking your device back to the time when Error 12175 hasn’t been triggered yet.
  • Tap “Next” and wrap up by clicking “Finish”.

If you’re using Windows 7 OS, you can reach “System Restore” by following the path Start > All Programs > Accessories > System Tools.


Step 6 — Error 12175 Caused by Outdated Drivers

Updating a driver is not as common as updating your operating system or an application used to run front-end interface tasks.

Drivers are software snippets in charge of the different hardware units that keep your device functional.

So when you detect an ERROR_WINHTTP_SECURE_FAILURE error, updating your drivers may be a good bet. But it is time consuming and shouldn’t be viewed as a quick fix.

Here’s the step-by-step process you can go through to update drivers for Windows 8, Windows 8.1 and Windows 10.

  • Check the site of your hardware maker for the latest versions of all the drivers you need. Download and extract them. We strongly advice going with original drivers. In most cases, they are available for free on the vendor website. Installing an incompatible driver causes more problems than it can ever fix.
  • Open “Device Manager” from the Control Panel.
  • Go through the various hardware component groupings and choose the ones you would like to update.
  • On Windows 10 and Windows 8, right-click on the icon of the hardware you would like to update and click “Update Driver”.
  • On Windows 7 and Vista, you right-click the hardware icon, choose “Properties”, navigate to the Driver panel, and then click “Update Driver”.
  • Next you can let your device automatically search for the most compatible drivers, or you can choose to update the drivers from the versions you have on your hard drive. If you have an installer disk, then the latter should be your preferred course of action. The former may often get the driver selection incorrect.
  • You may need to navigate a host of warnings from the Windows OS as you finalize the driver update. These include “Windows can’t verify that the driver is compatible” and “Windows can’t verify the publisher of this driver”. If you know that you have the right one in line, click “Yes”.
  • Restart the system and hopefully the ERROR_WINHTTP_SECURE_FAILURE error should have been fixed.

Step 7 – Call the Windows System File Checker into Action

By now the ERROR_WINHTTP_SECURE_FAILURE plaguing your device should have been fixed. But if you haven’t resolved the issue yet, you can explore the Windows File Checker option.

With the Windows File Checker, you can audit all the system files your device needs to operate, locate missing ones, and restore them.
Sound familiar? It is almost like “System Restore”, but not quite. The System Restore essentially takes you back in time to a supposedly perfect set up of system files. The File Checker is more exhaustive.

It identifies what is amiss and fills the gaps.

  • First and foremost, open up an elevated command prompt.
  • Next, if you are using Windows 8, 8.1 or 10, enter “DISM.exe /Online /Cleanup-image /Restorehealth” into the window and press Enter.
  • The process of running the Deployment Image Servicing and Management (DISM) tool may take several minutes.
  • Once it completes, type the following command into the prompt “sfc /scannow”.
  • Your device will now go through all protected files and if it detects an anomaly, it will replace the compromised version with a cached version that resides at %WinDir%\System32\dllcache.

Step 8 – Is your RAM Corrupted? Find Out.

Is it possible? Can the memory sticks of your device trigger Error 12175?

It is unlikely – because the RAM chips have no moving parts and consume little power. But at this stage, if all else has failed, diagnosing your RAM may be a good move.

You can use the Windows Memory Diagnostics Tool to get the job done. Users who are on a Linux or Mac and are experiencing crashes can use memtest86.

  • Open up your device and go straight to the “Control Panel”.
  • Click on “Administrative Tools”.
  • Choose “Windows Memory Diagnostic”.
  • What this built-in option does is it burns an ISO image of your RAM and boots the computer from this image.
  • The process takes a while to complete. Once it is done, the “Status” field at the bottom of the screen populates with the result of the diagnosis. If there are no issues with your RAM/memory, you’ll see “No problems have been detected”.

One drawback of the Windows Memory Diagnostic tool pertains to the number of passes it runs and the RAM segments it checks.

Memtest86 methodically goes over all the segments of your memory – irrespective of whether it is occupied or not.

But the Windows alternative only checks the occupied memory segments and may be ineffective in gauging the cause of the ERROR_WINHTTP_SECURE_FAILURE error.


Step 9 – Is your Hard Drive Corrupted? Find Out.

Your RAM or working memory isn’t the only culprit that may precipitate an ERROR_WINHTTP_SECURE_FAILURE error. The hard drive of your device also warrants close inspection.

The symptoms of hard drive error and corruption span:

  • Frequent crashes and the Blue Screen of Death (BSoD).
  • Performance issues like excessively slow responses.
  • Errors like Error 12175.

Hard drives are definitely robust, but they don’t last forever.

There are three things that you can do to diagnose the health of your permanent memory.

  • It is possible that your device may have a hard time reading your drive. This can be the cause of an ERROR_WINHTTP_SECURE_FAILURE error. You should eliminate this possibility by connecting your drive to another device and checking for the recurrence of the issue. If nothing happens, your drive health is okay.
  • Collect S.M.A.R.T data by using the WMIC (Windows Management Instrumentation Command-line) in the command prompt. To do this, simply type “wmic” into the command prompt and press Enter. Next follow it up with “diskdrive get status”. The S.M.A.R.T status reading is a reliable indicator of the longevity of your drive.
  • Fix what’s corrupt. Let’s assume you do find that all isn’t well with your hard drive. Before you invest in an expensive replacement, using Check Disk or chkdsk is worth a shot.
    • Open the command prompt. Make sure you are in Admin mode.
    • Type “chkdsk C: /F /X /R” and press “Enter”. “C” here is the drive letter and “R” recovers data, if possible, from the bad sectors.
    • Allow the system to restart if the prompt shows up.
    • And you should be done.

These steps can lead to the resolution you’re seeking. Otherwise the ERROR_WINHTTP_SECURE_FAILURE may appear again. If it does, move to Step 10.


Step 10 – Update Windows OS

Like the software applications you use to render specific tasks on your device, the Operating System also requires periodic updates.
Yes, we’ve all heard the troubling stories.

Devices often develop problems post unfinished updates that do not go through. But these OS updates include important security patches. Not having them applied to your system leaves it vulnerable to viruses and malware.

And may also trigger Error 12175.

So here’s how Windows 7, Windows 8, Windows 8.1 and Windows 10 users can check for the latest updates and push them through:

  • Click the “Start” button on the lower left-hand corner of your device.
  • Type “Updates” in the search bar. There should be a “Windows Update” or “Check for Updates” option, based on the OS version you’re using.
  • Click it. The system will let you know if any updates are available.
  • You have the convenience of choosing the components of the update you’d like to push through. Always prioritize the security updates.
  • Click “OK” followed by “Install Updates”.

Step 11 – Refresh the OS to Eliminate Persistent ERROR_WINHTTP_SECURE_FAILURE Error

“Windows Refresh” is a lifesaver.

For those of you who are still with us and nothing has worked to eliminate the Error 12175, until recently, a fresh install of Windows would have been the only option.

Not anymore.

The Windows Refresh is similar to reinstalling your Windows OS, but without touching your personal data. That’s hours of backup time saved in a jiffy.

Through the Refresh, all your system files become good as new. The only minor annoyance is the fact that any custom apps you’ve installed are gone and the system applications you had uninstalled are back.

Still, it is the best bet as the final step of this process.

  • Enter the “Settings” of your PC and click on “Change Settings”.
  • Click “Update and recovery” and then choose “Recovery”.
  • Select “Keep my files”. This removes apps and settings, but lets your personal files live on.
  • You’ll get some warning messages about the apps that will be uninstalled. If you’ve gone through a recent OS upgrade, the Refresh process makes it so that you can’t go back to your previous OS version – if you should ever feel the need to do it.
  • Click the “Refresh” button.

Are you using an older version of Windows that doesn’t come with the power to “Refresh”?

Maybe it is time to start from scratch.

  • Enter your BIOS set-up.
  • This is where you need to change your computer’s boot order. Make it so that the boot happens not from the existing system files, but from the CD/DVD Drive.
  • Place the original Windows disk in the CD/DVD drive.
  • Turn on or restart the device.
  • Choose where you’d like the system files to be installed.
  • Your PC will restart several times as the process runs its course.


FAQ’s

Do Runtime Errors Mean I Have to Buy a New Computer?

No, you do not if you are battling errors like ERROR_WINHTTP_SECURE_FAILURE and like ERROR_WINHTTP_SECURE_FAILURE. Runtime errors generally occur due to software issues and can be sorted out easily. In some cases, bad or aging hardware may be the cause, but such components can also be replaced. Hence, there’s usually no need to buy a new computer due to runtime errors.

What Do Runtime Errors Like Error 12175 Have to Do with the Windows Registry?

The Windows Registry is basically a collection of databases in MS Windows. The registry issues are usually the number one cause of runtime errors. The Registry may corrupt due to missing files or poor installation, leading to runtime errors. The problem can typically be solved by using a software designed to fix the Registry.

Can I Edit the Windows Registry Myself?

The Windows Registry gives you full ownership and allows you to edit permissions so that you can make necessary changes onto it. Right clicking on each file can do the trick. This can be dangerous, however, if you don’t know what you are doing. In situations like this, a better option is to use a program that is specifically designed to solve Registry errors.

Green Arrow

Start Download Now

Author:

Curtis Hansen

Curtis Hansen has been using, fiddling with, and repairing computers ever since he was a little kid. He contributes to this website to help others solve their computer issues without having to buy a new one.

Понравилась статья? Поделить с друзьями:
  • Twilight forest ошибка
  • Twfc exe системная ошибка physxloader dll трансформеры
  • Twebbrowser delphi ошибка сценария
  • Twain ошибка при сканировании hp
  • Twain ошибка драйвера сканирования