Do I understand correctly, in order to secure the system, when creating a NTS server, I can assign it a certificate, and on the client side, slip this same certificate in this way:
nc, err := nats.Connect("localhost",
nats.ClientCert("client-cert.pem", "client-key.pem"),
nats.RootCAs("rootCA.pem"))
if err != nil {
log.Fatal(err)
}
defer nc.Close()
its just questions, because I don’t how create cert yet
New contributor
Эдуард Воронцов is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.