Softaculous hosted on web provider. Issues setting up SMTP w office365

Has anyone had any success setting up smtp on O365 on self-hosted? I get the following error stream_socket_enable_crypto():Peer certificate CN=’*.provider.com’ did not match expected CN=‘smtp.office365.com

Maybe this will help…

https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting#certificate-verification-failure

Thanks not sure how I would need to do this certificate item with office 365. I may have to reach out for assistance.