Need https.send built-in supporting TLS secured connections
Fixes #1067
=== RUN TestHTTPSClient
--- PASS: TestHTTPSClient (0.30s)
=== RUN TestHTTPSClient/Successful_HTTPS_Get_with_File_Cert
--- PASS: TestHTTPSClient/Successful_HTTPS_Get_with_File_Cert (0.03s)
=== RUN TestHTTPSClient/Successful_HTTPS_Get_with_File_Cert/http.send
--- PASS: TestHTTPSClient/Successful_HTTPS_Get_with_File_Cert/http.send (0.02s)
=== RUN TestHTTPSClient/Successful_HTTPS_Get_with_Env_Cert
--- PASS: TestHTTPSClient/Successful_HTTPS_Get_with_Env_Cert (0.02s)
=== RUN TestHTTPSClient/Successful_HTTPS_Get_with_Env_Cert/http.send
--- PASS: TestHTTPSClient/Successful_HTTPS_Get_with_Env_Cert/http.send (0.01s)
=== RUN TestHTTPSClient/Successful_HTTPS_Get_with_Env_and_File_Cert
--- PASS: TestHTTPSClient/Successful_HTTPS_Get_with_Env_and_File_Cert (0.02s)
=== RUN TestHTTPSClient/Successful_HTTPS_Get_with_Env_and_File_Cert/http.send
--- PASS: TestHTTPSClient/Successful_HTTPS_Get_with_Env_and_File_Cert/http.send (0.02s)
=== RUN TestHTTPSClient/No_Root_Ca
--- PASS: TestHTTPSClient/No_Root_Ca (0.01s)
=== RUN TestHTTPSClient/No_Root_Ca/http.send
--- PASS: TestHTTPSClient/No_Root_Ca/http.send (0.00s)
=== RUN TestHTTPSClient/Wrong_Cert/Key_Pair
2019/01/29 13:23:34 http: TLS handshake error from 127.0.0.1:53160: remote error: tls: bad certificate
--- PASS: TestHTTPSClient/Wrong_Cert/Key_Pair (0.01s)
=== RUN TestHTTPSClient/Wrong_Cert/Key_Pair/http.send
--- PASS: TestHTTPSClient/Wrong_Cert/Key_Pair/http.send (0.00s)
=== RUN TestHTTPSClient/System_Certs_do_not_include_local_rootCA
--- PASS: TestHTTPSClient/System_Certs_do_not_include_local_rootCA (0.21s)
=== RUN TestHTTPSClient/System_Certs_do_not_include_local_rootCA/http.send
2019/01/29 13:23:34 http: TLS handshake error from 127.0.0.1:53161: remote error: tls: bad certificate
--- PASS: TestHTTPSClient/System_Certs_do_not_include_local_rootCA/http.send (0.21s)
PASS
Signed-off-by: repenno <rapenno@gmail.com> R
repenno committed
b4aecc3c430865060719648d61cd25342f04daa8
Parent: 7565c08
Committed by Torin Sandall <torinsandall@gmail.com>
on 2/7/2019, 4:41:25 PM