Test-WebServerSSL Powershell function
Test task:
- Write a PowerShell function that should connect to a remote site with known bad certificate (https://wrong.host.badssl.com/) and return the remote certificate details (certificate CN and thumbprint).
- Share a code with us in github repository Powershell function is allowed to use NetFramework/dotnet core libraries if required. No third party tools/utilities like openssl are allowed. Expected code volume is ~70 lines of code or below.