creates an https server if cert an key are configured