SolaceProducts / pubsubplus-go-client

A Solace PubSub+ Go Client
Apache License 2.0
6 stars 8 forks source link

[Request]: Update the API documentation #21

Open SyedAanif opened 3 months ago

SyedAanif commented 3 months ago

Feature Description

Thanks for building this API, but as a request can you please update the docs with examples specifically catering to the mTLS needs.

Use Case

This request is required to have a clear understanding of the certificate based broker connection. Few pointers:

Proposed Solution

No response

mvsolace commented 3 months ago

Hi @SyedAanif , can you please raise this request with our support team by contacting support@solace.com? They will be able to help answer your request or guide you to someone that can.

Thank you, MV

solace-brendabutler commented 3 months ago

Two-way TLS authentication (or "client-certificate authentication") is documented here:

https://docs.solace.com/API/API-Developer-Guide-Go/Go-API-Messaging-Service.htm#Client

There are examples of it in this codebase in the test code. Please see pubsubplus-go-client/test/messaging_service_test.go, and search for either "connect to the broker using client certificate authentication via authentication strategies" or "connect to the broker configured via properties".

solace-brendabutler commented 2 months ago

I have submitted a request for the documentation to be augmented with extra info about cert/key file format, and what to do in case the key is in the same file as the certificate, and what to do if there is no password for the private key.

I have also raised Issue https://github.com/SolaceSamples/solace-samples-go/issues/14