ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
try {
$tcpClient = New-Object System.Net.Sockets.TcpClient
$tcpClient.Connect('www.domainname.com', 443)
$tcpClient.Close()
Write-Host 'Success'
} catch {
Write-Host 'Failed'
}
Just in case it's PuTTY being helpful.
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
(New-Object System.Net.Sockets.TcpClient).Connect('www.domain.com', 443)
If it does nothing at all the connection worked. Red errors means not.ASKER
ASKER
ASKER
Invoke-WebRequest -Uri https://www.domainname.com
If it works, it'll pull back the default page for the site in raw HTML.ASKER
Invoke-WebRequest -Uri https://www.domainname.com -UseBasicParsing
And:$webClient = New-Object System.Net.WebClient
$webClient.DownloadString('https://www.domain.com')
ASKER
ASKER
host 1.2.3.4 and tcp port 443
Then verify that:ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
This topic area includes legacy versions of Windows prior to Windows 2000: Windows 3/3.1, Windows 95 and Windows 98, plus any other Windows-related versions including Windows Mobile.
TRUSTED BY
SSL will only work if the name requested matches the name on the certificate.