Hi Guys,
Most of the servers have turn off TLSv1 by now and moved to TLSv1.2 but netget() is still using TLSv1.
Does anyone know I know how to change netget() to use TLSv1.2 please?
Example of the problem, https://www.digikey.com/products/en?keywords=401-2013-2-ND
to get part price from ULP will no longer work because digikey has turned off TLSv1.0 on their server.
curl -v --tlsv1.0 https://www.digikey.com/products/en?keywords=MBR1020VLTR-ND
* STATE: INIT => CONNECT handle 0x1cb0180; line 1392 (connection #-5000)
* Added connection 0. The cache now contains 1 members
* STATE: CONNECT => WAITRESOLVE handle 0x1cb0180; line 1428 (connection #0)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 159.180.92.16...
* TCP_NODELAY set
* STATE: WAITRESOLVE => WAITCONNECT handle 0x1cb0180; line 1509 (connection #0)
* Connected to www.digikey.com (159.180.92.16) port 443 (#0)
* STATE: WAITCONNECT => SENDPROTOCONNECT handle 0x1cb0180; line 1561 (connection #0)
* Marked for [keep alive]: HTTP default
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
CApath: none
* TLSv1.0 (OUT), TLS header, Certificate Status (22):
} [5 bytes data]
* TLSv1.0 (OUT), TLS handshake, Client hello (1):
} [224 bytes data]
* STATE: SENDPROTOCONNECT => PROTOCONNECT handle 0x1cb0180; line 1575 (connection #0)
* OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to www.digikey.com:443
* Marked for [closure]: Failed HTTPS connection
* multi_done
* stopped the pause stream!
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
* Closing connection 0
* The cache now contains 0 members
* Expire cleared
curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to www.digikey.com:443
The above curl shows that digikey.com does not support TLSv1.0 anymore.
neterror() from replied with "Connection closed"
Cheers
JP