Hello, solace team
I am a beginner and I want to ask some simple questions.
I have created a PubSub+ Software Event Broker on my local docker following blew tutorial: Docker Desktop for Windows
And I also connected to the broker using the node js tutorial as shown below:
I want to connect to port 8007 using SSL, so I replaced the above command and replaced ws://localhost:8008 with wss://localhost:8007 but it’s not working.
Hi,
If it’s a self-signed certificate, you need to tell the API where the public cert is with the sslTrustStores property that points to your local PEM.
You can find a sample here:
Hello again,
Following your tip yesterday, I used the scuresession.js file. And I created a Private Certificate Authority using this command:
openssl req -newkey rsa:2048 -nodes -keyout MyRootCaKey.pem -x509 -days 365 -out MyRootCaCert.pem
Then I created a certificate using blew command:
openssl genrsa -out client1.pem 2048
openssl req -new -key client1.pem -out MyClient1.csr
openssl x509 -req -in MyClient1.csr -CA MyRootCaCert.pem -CAkey MyRootCaKey.pem -CAcreateserial
Knowing that at that time, I created a total of 4 files :