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