Idkfawin32
asked on
SSL NOMATCH issue when using proxies in HTTP request
This warning may be caused by using an IP address or a hostname that differs from that found in the certificate.
WinVerifyTrustWarning: CERT_E_CN_NO_MATCH
Status = 0x800b010f
(warning) SSL Server Certificate not verified.
Basically, the IP in the SSL certificate is not the same as the IP of the proxy that it is going through... This causes the SSL certificate to go unverified when communicating with webg services.
I am using the CHILKAT HTTP class.
I would love to find out why this is happening. It always happens when connecting to any SSL HTTPS link.
WinVerifyTrustWarning: CERT_E_CN_NO_MATCH
Status = 0x800b010f
(warning) SSL Server Certificate not verified.
Basically, the IP in the SSL certificate is not the same as the IP of the proxy that it is going through... This causes the SSL certificate to go unverified when communicating with webg services.
I am using the CHILKAT HTTP class.
I would love to find out why this is happening. It always happens when connecting to any SSL HTTPS link.
Dim prxip As String = proxinf(0)
Dim prxport As String = proxinf(1)
If RadSocks.Checked = True Then
http.SocksHostname = prxip
http.SocksPort = prxport
http.ConnectTimeout = Me.NumTim.Value
http.ProxyPort = Nothing
Else
http.ProxyDomain = prxip
http.ConnectTimeout = Me.NumTim.Value
http.ProxyPort = prxport
End If
If Me.ChkSSL.Checked = True Then
Dim req As New HttpRequest()
Dim resp As New HttpResponse()
resp = http.SynchronousRequest("https://www.google.com", 443, True, req)
Else
http.QuickGetStr("http://www.google.com/")
End If
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
any luck?
ASKER
No luck, I just switched my entire application over to normal .Net HTTPWebRequests
Did switching to .Net Web Requests improve your situation?
ASKER
Yes, it resolved the issue. It was a huge pain but it solved everything.
Ok,
i guess you can close question then
Jfer
i guess you can close question then
Jfer
ASKER
The solution wasn't exactly a solution but it did lead me to the answer and that is good enough for me.