Fix the issue "unable to verify the first certificate in nodejs" when integrating Onlyoffice with Owncloud

ONLYOFFICE® is an online office suite integrated with a collaboration platform to manage documents, projects,team and customer relations in one place []. We have been using this product along with ownCloud® web application for several years and it provides an online platform to create/edit documents/slides/sheets stored in ownCloud environment. running only off on secure environment (SSL) is the recommended best practices  after configure ssl certificate, on onlyoffece server  when you try to integrate  onlyoffice with ownCloud from ownCloud admin interface ,you may get "unable to verify the first certificate in nodejs" error message. 

Flow the below steps to rectify the  issue.

1) Set 'rejectUnauthorized'  to false as follow:

root@<Docker ID>:/# nano /etc/onlyoffice/documentserver/default.json


     "rejectUnauthorized": false, 

     "url": url,

     "headers" : {"Content-Type": "application/json",

        function(err,data,body) {



2) Add the follow entries to resolv.conf:

[root@newoffice ~]# vim /etc/resolv.conf

nameserver <internal dns>


3) Configur /etc/docker/daemon.json as follow:

[root@newoffice ~]# vim /etc/docker/daemon.json


"dns": ["<internal dns>",""]