Dominic Böttger

← Back to blog

Published on Sun Nov 29 2020 00:00:00 GMT+0000 (Coordinated Universal Time) by Dominic Böttger

At our company (INSPIRATIONLABS – New Work Technologies) we help our customers get the right infrastructure for their business and to make the lives of their employees better by giving them the right tools for their job. Sometimes it simply starts with the migration from an IMAP server to a cloud solution like Office 365.

Last week we had the problem that we had to migrate from an IMAP server that had TLS older than 1.2 deactivated (which is a good thing). AvePoint Fly was unable to contact the server. I contacted AvePoint support, but they did not know the problem yet. So, I checked out the structure of the AvePoint application and found out that it is based on .NET 4. Then I figured out that when the application is targeted to a .NET version < 4.7 there are problems with TLS 1.2. As I had no access to their codebase, I had to figure out which config in the project needs to be adjusted.

The Workaround

  1. ImapMigration.exe.config - Add the line:

    <AppContextSwitchOverrides value="Switch.System.Net.DontEnableSystemDefaultTlsVersions=false"/>

    Location: C:\Program Files\APElements\FLY\Agent\bin\ImapMigration.exe.config

  2. TimerService.exe.config - Add the same line:

    <AppContextSwitchOverrides value="Switch.System.Net.DontEnableSystemDefaultTlsVersions=false"/>

    Location: C:\Program Files\APElements\FLY\Manager\Control\bin\TimerService.exe.config

  3. Restart the Fly Agent and Fly Timer Service.

After this we were able to contact the source IMAP server and start the Migration.

References

Transport Layer Security (TLS) best practices with the .NET Framework

Written by Dominic Böttger

← Back to blog
  • Turn Your Surface Pro 6 Into a Home Assistant Voice Satellite

    Turn Your Surface Pro 6 Into a Home Assistant Voice Satellite

    Transform your old Surface Pro 6 into a powerful voice assistant for Home Assistant using Wyoming Satellite and openWakeWord. The conference-grade microphones make it perfect for voice control.

  • Fix Surface Pro Touch After Suspend on Linux

    Fix Surface Pro Touch After Suspend on Linux

    How to fix the Surface Pro touchscreen losing functionality after suspend/resume on Linux with the linux-surface kernel using systemd sleep hooks.

  • AvePoint Fly Migrator TLS 1.2 workaround

    AvePoint Fly Migrator TLS 1.2 workaround

    A workaround to enable TLS 1.2 support for IMAP migrations with AvePoint's Fly Migrator.

  • Optimize Visual Studio Code for C# .NET Core development

    Optimize Visual Studio Code for C# .NET Core development

    A brief introduction and some information on how VSCode can be optimized for a great C# .NET core developer experience.

  • Pretty Windows Terminal and PowerShell Setup

    Pretty Windows Terminal and PowerShell Setup

    My Windows Terminal and PowerShell configuration. It includes modules like git-posh and oh-my-posh to beautify the command-line experience.

  • Securely fight COVID-19 in a Windows Sandbox

    Securely fight COVID-19 in a Windows Sandbox

    A simple script which installs the Folding@Home client into a Windows Sandbox.