From 9c674a229629b26f2c153a5b23e03c52d2dcf7be Mon Sep 17 00:00:00 2001 From: Vinay Balamuru Date: Thu, 21 Jan 2021 08:01:35 -0600 Subject: [PATCH] Update tls.md corrected sample C code snippet re. how to load TLS certificates --- developing-with-nats/security/tls.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/developing-with-nats/security/tls.md b/developing-with-nats/security/tls.md index c6392ae..1af00f8 100644 --- a/developing-with-nats/security/tls.md +++ b/developing-with-nats/security/tls.md @@ -212,9 +212,9 @@ natsStatus s = NATS_OK; s = natsOptions_Create(&opts); if (s == NATS_OK) - s = natsOptions_SetCertificatesChain(opts, "client-cert.pem", "client-key.pem"); + s = natsOptions_LoadCertificatesChain(opts, "client-cert.pem", "client-key.pem"); if (s == NATS_OK) - s = natsOptions_SetCATrustedCertificates(opts, "rootCA.pem"); + s = natsOptions_LoadCATrustedCertificates(opts, "rootCA.pem"); if (s == NATS_OK) s = natsConnection_Connect(&conn, opts);