To begin, this sketch works fine when using the default website and page ("www.reddit.com"). When changing the SERVER to my website ("gardenmeister.website") however, I get the error shown below.
Thinking that the problem was in the SSL certification process, I then added the following line to the Setup: http.tlsRequireVerification(false); -bypassing the TLS verification. The result was the same. However, when I switched to port 80 (and changed the http.connectSSL() to http.connect(), it worked the way I would expect returning a standard 301 Document Moved page. This narrows the problem down to something in the AdafruitTCP::connectSSL method.HTTPS Custom Root CA Example
Bootloader : 1.0.0
WICED SDK : 3.5.2
FeatherLib : 0.6.5
Arduino API : 0.6.6
WARNING: Featherlib & Arduino library version are not matched
Please update Featherlib or Arduino library if possible
Please wait while connecting to: 'HOME-0435' ... Connected!
SSID : HOME-0435 (-57 dBm)
Encryption : WPA2_MIXED
MAC Address : 6C:0B:84:CA:23:64
Local IP : 10.0.0.8
Gateway : 10.0.0.1
Subnet Mask : 255.255.255.0
Connecting to gardenmeister.website port 443 ...
SDEP_CMD_TCP_CONNECT failed, Error: SOCKET_CLOSED (7014)
--- FEATHER HALTED ---
I re-compiled this program many times replacing the SERVER variable with different website names each time. Most sites I tried -worked. But some others did not (although, their error number was different from mine which makes me think there could be mutiple issues). My best guess is that it may be timing related (my site is not exactly running on an enterprise platform) but I'm not sure if that's really true or what to do about it if it is. (For what it's worth, I'm able to post data with no problems using the Metro MO Express and WINC1500 shield on the same computer.) Thanks in advanced to anyone who could help with this.
P.S., Is there a complete list of error codes somewhere and if so, could someone please point me to it? If not, could someone provide more insight into error numbers 7014 and 5018?
P.P.S. Other secure websites I tried that failed:
goldprice.org / - hangs on connect
http://www.BANNED.gov / - ERROR_FATAL_ALERT_MESSAGE (5018)
http://www.eaa.org /eaa - ERROR_FATAL_ALERT_MESSAGE (5018)
calikimgardenandhome.com / - ERROR_FATAL_ALERT_MESSAGE (5018)
za.godaddy.com / - ERROR_FATAL_ALERT_MESSAGE (5018)