The end date assigned to the x509 certifciate in use for the WinRM
HTTPS listener is not properly computed, resulting in issues during
leap days. This patch solves the issue by employing the appropriate
Win32 API.
Closes-Bug: #1551211
Change-Id: Ib36a2db58634caba4282f19a0386191ca33a4168