I had error during downloading Oracle distribution from support.oracle.com using Wget utility.
wget.sh script generates on support.oracle.com site for certain download after click on WGET Options link.
sh wget.sh
tail -100f wgetlog-08-24-15-04:52.log:
...
Resolving updates.oracle.com (updates.oracle.com)... 141.146.44.51
Connecting to updates.oracle.com (updates.oracle.com)|141.146.44.51|:443... connected.
Unable to establish SSL connection
...
We must explicitly define security protocol for HTTPS connections.
For every call of WGET utility in wget.sh file add following attribute
Example (wget.sh, line 40):
SSO_RESPONSE=`$WGET --secure-protocol=TLSv1 --user-agent="Mozilla/5.0" https://updates.oracle.com/Orion/Services/download 2>&1|grep Location`
wget.sh script generates on support.oracle.com site for certain download after click on WGET Options link.
Problem
sh wget.sh
tail -100f wgetlog-08-24-15-04:52.log:
...
Resolving updates.oracle.com (updates.oracle.com)... 141.146.44.51
Connecting to updates.oracle.com (updates.oracle.com)|141.146.44.51|:443... connected.
Unable to establish SSL connection
...
Solution
We must explicitly define security protocol for HTTPS connections.
For every call of WGET utility in wget.sh file add following attribute
- --secure-protocol=TLSv1
Example (wget.sh, line 40):
SSO_RESPONSE=`$WGET --secure-protocol=TLSv1 --user-agent="Mozilla/5.0" https://updates.oracle.com/Orion/Services/download 2>&1|grep Location`