basic cleanups regarding SSL handling (#16940) [backport:1.0]

* basic cleanups regarding SSL handling
* enabled certificate checking on Windows
* updated the SSL test
* quoting helps

(cherry picked from commit abac35e743)
This commit is contained in:
Andreas Rumpf
2021-02-08 13:54:03 +01:00
committed by narimiran
parent 90cf7177ca
commit 793bd0a977
4 changed files with 60 additions and 19 deletions

View File

@@ -99,7 +99,7 @@ when not defined(windows):
let t = spawn runServer(port)
sleep(100)
var client = newHttpClient()
var client = newHttpClient(sslContext=newContext(verifyMode=CVerifyNone))
try:
log "client: connect"
discard client.getContent("https://127.0.0.1:12345")