This change selects the certificate from the winrm configuration and attempts to find the expiry date from that.
Trond Hindenes pointed out that simply picking the first certificate from local computer certs is not guaranteed to select the correct certificate.
Merge pull request #8847 from jhawkesworth/win_facts_use_cert_from_winrm_configuration

window facts. Select certificate to check for expiry from winrm configuration