🎄 Happy Holidays! 🥳
Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.
Happy Holidays!
Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.
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