Skip to main content
Kofax

Failure to connect using OAuth with Office 365 or Exchange Web Services in a TLS 1.2 environment

Article # 3031539 - Page views: 309

Issue

When configuring an OAuth input source for Office 365 or Exchange Web Services in the COLLECTOR and the environment is restricted to TLS (Transport Security Layer) 1.2, one of the following messages may be displayed during the connection attempt:

  • "The connection to Office 365 failed. An error occurred when sending the request."
  • "The underlying connection was closed: An unexpected error occurred on a send."

Cause

Microsoft Windows does not contain necessary Registry entries by default.

 

Solution

For 32-bit Operating Systems:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319

For 64-bit Operating Systems:
KEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v4.0.30319

Add the following values to the appropriate Registry Key listed above:

  1. Create a DWORD value named SchUseStrongCrypto and set the value to 1
  2. Create a DWORD value named SystemDefaultTlsVersions and set the value to 1

 

Level of Complexity 

High

 

Applies to  

Product Version Build Environment Hardware
COLLECTOR 6.5.0.4 and above 6.5.0.4 and above Current Current

References

Transport Layer Security (TLS) registry settings
https://docs.microsoft.com/en-us/win...istry-settings

How to enable TLS 1.2 on clients
https://docs.microsoft.com/en-us/mem...tls-1-2-client

Transport Layer Security (TLS) best practices with the .NET Framework
https://docs.microsoft.com/en-us/dot...rogramming/tls

Article # 3031539
  • Was this article helpful?