mirror of
https://github.com/taigrr/nats.docs
synced 2026-04-15 21:30:49 -07:00
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user