Solace Community is getting a facelift!
On March 3rd we will be starting the process of migrating Solace Community to a new platform. As a result, Solace Community will go in to a temporary read-only state. You will still be able to come onto Solace Community and search through posts to find answers, but you won't be able to ask questions, post comments, or react in any way.
We hope to have the migration complete by Wednesday March 5th (or sooner), so please keep an eye out!
JavaScript, Solace + SSL (HTTPS, WSS)
Hi all -
I have a web based JavaScript/React (no Node JS) app currently using the Solace JavaScript client successfuly. Due to company demands we are being told to convert to using secure connections (understandable).
I have looked at the sample below which seems to suggest you can use basic authentication while using https, wss? https://github.com/SolaceSamples/solace-samples-javascript/blob/master/src/features/SecureSession/SecureSession.js,
HOWEVER, I am being told explicitly via our inhouse solace support team that secure connections are only possible using certificate based authentication; IT IS NOT SUPPORTED with BASIC AUTHENTICATION.
Can anyone help confirm if this is indeed correct?
I don't see support from certificate based authentication for JavaScript apps except NodeJS (not an option)?
Appreciate any insight to improve my learning curve!
Regards,
K
Comments
-
Hi @knightcoder,
The solace javascript API supports client authentication via both basic auth OR client certificates.
You can see the options in the API docs here: https://docs.solace.com/Overviews/Client-Authentication-Overview.htm#Client-Certificate
Here is more information for how to configure your client certificates: https://docs.solace.com/Overviews/Client-Authentication-Overview.htm#Client-CertificateIf you don't mind, what did you read that made you think that certificate based authentication is not available for JavaScript apps except NodeJS?
0 -
If you have access to the web-mgmt UI, you can select the message-VPN, then "Try Me!" from the left-column toolbar. The Try Me! tab allows you to test basic connectivity for Javascript clients in the browser, and you can specify WS or WSS protocol as well as username/password and msg-VPN.
In your case, it's sounding like there is an issue with the browser accepting the server certificate.
0