fix for hostname in certificate mismatch

Signed-off-by: Ketoth Xupack <ketoth.xupack@gmail.com>