Open iliyan85 opened 3 weeks ago
Hi @iliyan85, I understand that you are having trouble connecting to websocket servers using mTLS and understand how frustrating it can be. I tried replicating this on the latest version of the desktop app on mac v11.1.4.
I was able to successfully connect to a websocket server running behind a nginx server with self signed certificates. I tested the connection using both a p12 file as well as using the cert + key file combination.
In order to diagnose the issue it would be helpful if you could:
wss://
prefix with https://
) and share the response from the server. If the certificates are configured correctly (in postman and nginx), you should see a 426 Upgrade Required
status code from the server, similar to the screenshot below. You should also be seeing the certificates that are being used to make the request.
listen 8080 ssl;
ssl_certificate /etc/nginx/server.crt;
ssl_certificate_key /etc/nginx/server.key;
ssl_client_certificate /etc/nginx/ca.crt;
ssl_verify_client on;
I suspect there could be one of the following reasons for a failed connection
It would be helpful if you can share any additional steps/information that are specific to your setup that might help us reproduce the issue so that we could investigate further.
First of all, I don't have any problem with nginx. :) Postman works fine for https locations with client certificate.
Also Postman works fine for this one and can establish wss connection If I turn ssl_verify_client off.
In otherwise (ssl_verify_client on) nginx returns 400.
Hi @iliyan85,
It would be helpful if you could share a demo-repo or dummy certificates with which we can replicate the issue and fix it.
Is there an existing issue for this?
Describe the Issue
Based on the previous issue WebSockets and mTLS #11865,
I conducted several tests about using of TLS client certificates for wss connection and as a result, the connection didn't establish. The err log file of nginx says:
client sent no required SSL certificate while reading client request headers
I tested with Postman v11.1.14 for Windows and Postman v11.1.13 for Linux and unfortunately the situation was the same for both.
Steps To Reproduce
Screenshots or Videos
No response
Operating System
Windows
Postman Version
11.1.14
Postman Platform
Postman App
User Account Type
Signed In User
Additional Context?
No response