viernes, 10 de febrero de 2023

TLS PROTOCOLS and Cipher ( to resolve ssl provider error 0 connecting to SQLServer)

Enabled and Disabled SSL/TLS versions are under the following registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols

There is a Client and Server sub-key for each version of SSL/TLS, with Enabled and Disabled values, e.g.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client] "DisabledByDefault"=dword:00000000 "Enabled"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server] "DisabledByDefault"=dword:00000000 "Enabled"=dword:00000001

*** Please note that any non-zero value is take for TRUE. However, 1 is generally preferred over FFFFFFFF (or –1).

You can check the Functions value under following registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Cryptography\Configuration\Local\SSL\00010002


References:

0710 SSL Errors after Upgrading to TLS 1.2 · microsoft/CSS_SQL_Networking_Tools Wiki · GitHub

An existing connection was forcibly closed (OS error 10054) - SQL Server | Microsoft Learn


martes, 7 de febrero de 2023

arreglar 0xc000000e después de clonado de disco en Windows 10

  1.  Comprobar el secureboot
  2.  Probar el autorepair del inicio
  3.  Reparar el volumen EFI
    • diskpart
    • list volume
    • select volume=n (donde n es el system reserved donde está la UEFI
    • assign letter=g (o otra que no esté en uso)
    • salimos
    • bcdboot c:\windows /s g: /f UEFI (c:\windows o donde esté en widows, o la partición con la etiqueta "Boot")
    • Probar
  4. intentar con sfc /scannow
Comandos útiles:


Localizar el disco asisgnada a la partición de windows

bcedit /enum |find "device"


Una vez la unidad usar sfc /Scannow /OFFBOOTDIR=c:\ /OFFWINDIR=c:\windows (cambair c por la que hayamos encontrado antes)



5.En una consoa de recuperación intentar los típicos

bootrec /fixmbr

bootrec /fixboot

bootrec /scanos

bootrec /rebuildbcd


Sino va podemos intentar

bcdedit /set {bootmgr} device boot

bcdedit /set {default} device boot

bcdedit /set {default} osdevice boot

bcdedit /set {default} device partition=c:

bcdedit /set {default} osdevice partition=c:

bcdedit /set {default} path \windows\system32\winload.efi


miércoles, 1 de febrero de 2023

L2TP Ipsec Windows to Mikrotik eror 789

 Add this to registry REG ADD HKLM\SYSTEM\CurrentControlSet\Services\PolicyAgent /v AssumeUDPEncapsulationContextOnSendRule /t REG_DWORD /d...