The remote certificate is invalid according to the validation

Thanks, Mr. @nshahzad for your quick reply and welcome back to the forum.

I am not using Orchestrator for now however my issue was due to Anti Virus which was resolved as below:

https://forum.uipath.com/t/get-imap-mail-messages-with-anti-virus-enabled/147151/3

Happy Automating!