Nextcloud 16 Centos 7.6.1810 new install php 7.3 onlyoffice issue

I am having issues with the onlyoffice integration with php7.3.

I did a new install of NC 16 and I am not able to connect to my document server. The old server I have NC 15 has no issue. I can’t even connect to the test onlyoffice in the settings page. Has anyone ran into this issue with php 7.3?

Log file from onlyoffice server out.log
out.log:[2019-09-15T21:03:23.088] [ERROR] nodeJS - error downloadFile:url=https://files.websoftpc.com:8444/index.php/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.zRbm2oJ5woukjOlAaVY78KmCF9IaFWmKUWQTRzMXk90;attempt=3;code:UNABLE_TO_VERIFY_LEAF_SIGNATURE;connect:null;(id=conv_check_450898151_docx)

For anyone having this issue. I fixed it using the following steps.

Changed outbox to true in /etc/onlyoffice/documentserver/default.json
“token”: {
“enable”: {
“browser”: false,
“request”: {
“inbox”: false,
“outbox”:true
}

I also had to do the change to false
“rejectUnauthorized”: false