Bu resmi istemeye çalışıyorum: https://www.kamerstunt.nl/file/img/web/woning/9577323WenumWieselZwolseweg-142d_6.jpg Bunu okuduğunuzda resim artık mevcut değilse kaldırılmış, ancak yine de söz konusu SSL sertifikasını görüntüleyebileceksiniz. Tarayıcımı kullanarak sayfaya başarılı bir şekilde ulaşabildim, görüntüyü istedim ve geçerli bir SSL sertifikası görebildim.ASP.NET "İstek iptal edildi: SSL/TLS güvenli kanal oluşturulamadı" da yapılandırılmış servicepointmanager ile birlikte oluşur
Burada kontrol:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 Or SecurityProtocolType.Tls Or SecurityProtocolType.Tls11 Or SecurityProtocolType.Tls12
Ama sonra hataları olsun:
Dim imgRequest As WebRequest = WebRequest.Create("https://www.kamerstunt.nl/file/img/web/woning/9577323WenumWieselZwolseweg-142d_6.jpg")
Dim imgResponse As WebResponse
ServicePointManager.Expect100Continue = True
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls
'//I also tried: ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls Or SecurityProtocolType.Ssl3
imgResponse = imgRequest.GetResponse()
Dim streamPhoto As Stream = imgResponse.GetResponseStream()
Denedim: 'Tls12' is not a member of 'System.Net.SecurityProtocolType'
ve 'Tls11' is not a member of 'System.Net.SecurityProtocolType'
The request was aborted: Could not create SSL/TLS secure channel Yani benim kod çözüm belirtti
Ben de pencere 512 bit ile DHE engellemeyecek izin kayıt değiştirmeye çalışmış ve HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\KeyExchangeAlgorithms\Diffie-Hellman.
altında 0x00000200 (512) değeriyle ClientMinKeyBitLength eklendi Ama yine de ... neden başarısız?
dosyayı indirmek isteyen var mı? – Codexer
Bir memorystream'e yüklemeye çalışıyorum (bu yüzden diske değil): 'Dim akışıFazla Akış olarak = imgResponse.GetResponseStream()' – Flo
Lütfen güncellenmiş yanıtlara bakın ... denenmiş ve test edilmiştir. – Codexer