Improve Certificate Checking (Add support for wildcard certificates and check against RDP gateway hostname)