-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.3.0
-
None
-
Win7 64 MinGW 4.8
Following the examples sslechosocketserver and sslechosocketclient (which I have working by using a self-signed certificate on the server) I was intrigued to get the client to list e.g. the company name of the server's certificate.
I assumed that I can use the client QWebsocket's sslConfiguration() to get the current QSslConfiguration and then use the peerCertificate() method to get the server's certificate to inspect the subjectInfo(QSslCertificate::Organization) for example. However, on a successful connection, the sslConfiguration returned from the client websocket is null. The client doesn't have any certificate/keys and the server has a self-signed certificate/key generated using the openssl req command.