AMBARI-7658. Fix warning when using HTTPS_ONLY for secured DN (dlysnichenko)