use packed ca.pem

This commit is contained in:
Sergio R. Caprile committed 2023-09-06 15:21:16 -03:00
1 parent ae55789c4b
commit d8106a8ffe
25 files changed
+2620 -24

No files matched your search

+1 -1
View File
@@ -52,7 +52,7 @@ int main(int argc, char *argv[]) {
}
mg_mgr_init(&mgr); // Initialise event manager
struct mg_tls_opts opts = {.client_ca = mg_str(CA_ALL)};
struct mg_tls_opts opts = {.client_ca = mg_unpacked("/certs/client_ca.pem")};
mg_tls_ctx_init(&mgr, &opts);
mg_http_connect(&mgr, argv[1], fn, argv[2]); // Connect to the proxy
for (;;) mg_mgr_poll(&mgr, 1000); // Event loop