Device connection failed: Requesting operating system information, The remote certificate is invalid according to the validation procedure.

I am tryining to deploy a Hololens project via Editor using the Device Manager → Launch. But I get this error. Packagining and deploying via Device Portal doesn’t work either… Can anyone help plz

Log.WriteException: ERROR: Device connection failed: Requesting operating system information, The remote certificate is invalid according to the validation procedure.
Log.WriteException:        (see C:\Users\darka\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.27\Log.txt for full exception trace)
Log.WriteException: 
Log.WriteException: AutomationException: Device connection failed: Requesting operating system information, The remote certificate is invalid according to the validation procedure.
Log.WriteException:    at HoloLens.Automation.HoloLensPlatform.RemoteDeviceArchitecture(String DeviceAddress, ProjectParams Params) in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\HoloLens\HoloLensPlatform.Automation.cs:line 1351
Log.WriteException:    at HoloLens.Automation.HoloLensPlatform.PlatformSetupParams(ProjectParams& ProjParams) in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\HoloLens\HoloLensPlatform.Automation.cs:line 456
Log.WriteException:    at BuildCookRun.SetupParams() in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 89
Log.WriteException:    at BuildCookRun.ExecuteBuild() in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 37
Log.WriteException:    at AutomationTool.BuildCommand.Execute() in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 263
Log.WriteException:    at AutomationTool.Automation.Execute(List`1 CommandsToExecute, Dictionary`2 Commands) in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 547
Log.WriteException:    at AutomationTool.Automation.Process(String[] Arguments, StartupTraceListener StartupListener) in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 511
Log.WriteException:    at AutomationTool.Program.MainProc(String[] Arguments, StartupTraceListener StartupListener) in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\Program.cs:line 175
Log.WriteException:    at AutomationTool.Program.<>c__DisplayClass1_0.<Main>b__2() in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\Program.cs:line 87
Log.WriteException:    at AutomationTool.InternalUtils.RunSingleInstance(Func`1 Main) in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:line 739
Log.WriteException:    at AutomationTool.Program.Main(String[] Arguments) in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\Program.cs:line 87
Log.WriteException: ==============================================================================
Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)

Solved. Had to Generate a Certificate in the Project Settings > Platforms > Hololens