Description
When SSL enabled the certificates will have actual host name.
NS server passes cbq-engine local host. But for gocbcore we need to pass actual hostname in the certificates.
We use to get hostname once at the start use that. Unfortunately that will not work the following case.
bring single node cluster, hostname is local host
enable encryption
use transactions will work
now add another node. The local hostname is changed to actual ip
now transactions will not work.
Solution: Each time certificates refresh get hostname and use that