Open utterances-bot opened 4 years ago
Invalid TLS/SSL certificate
https://api.ipify.org?format=json
Error code: SEC_ERROR_UNKNOWN_ISSUER
$ openssl s_client -connect api.ipify.org:443
CONNECTED(00000003)
depth=2 C = US, ST = California, L = San Francisco, O = Cisco, CN = Cisco Umbrella Primary SubCA
verify error:num=20:unable to get local issuer certificate
The word "api" has to be replaced with "api6" in the used URI:
https://api6.ipify.org?format=json
This URI works well in the demonstrated example
See https://github.com/HaxeFoundation/code-cookbook/pull/145
Loading a file from web - Beginner - Haxe programming language cookbook
This example uses haxe.Http to load external json file using and demonstrates how to handle the result.
https://code.haxe.org/category/beginner/loading-external-files.html