Questions tagged [qsslsocket]

QSslSocket is an SSL-encrypted network socket class, from the Qt library

QSslSocket is a class in the library that provides a Secure Sockets Layer ()-encrypted network . It is part of the QtNetwork module and was introduced in Qt 4.3.

The most common way to use QSslSocket is to construct an object and start a secure connection by calling connectToHostEncrypted(). This method starts an immediate SSL handshake once the connection has been established.

See also

51 questions
2
votes
1 answer

Qt Application crashes whenever WebKit tries to load HTML

I'm using Qt 4.7.4 with C++ and I'm trying to embed a html document with some flash elements into a Qt application. To start out I added a QWebView widget to my main window and tried to load a html document stored on my harddrive, that caused an…
user1646196
  • 589
  • 6
  • 28
1
vote
1 answer

Why is QSslSocket not emitting `readyRead()` signal when connecting from "BrowserStack" mobiles?

We are using QSslServer to accept https connections in form of QSslSockets and it's working for years in Windows, Mac, Ubuntu & Android's Chrome & Firefox. To our surprise, the website connection is not happening if we use Browserstack's mobiles,…
iammilind
  • 68,093
  • 33
  • 169
  • 336
1
vote
0 answers

Update QSSL libraries in order to use OpenSSL 3.x

I've installed Qt 6.3 in Ubuntu 22.04 and I discovered this: Incompatible version of OpenSSL (built with OpenSSL 1.x, runtime version is >= 3.x) The backend "cert-only" does not support QSslKey Active TLS backend does not support key creation As…
Mark
  • 4,338
  • 7
  • 58
  • 120
1
vote
1 answer

AC certificate not trusted during handshake

I have two application (a client and a server) which communicate with QSslSocket (protocol TLS). I create a key and a certificate for my server. I sign the certificate with an AC. (I have also create the AC). #create AC $ openssl genrsa -des3 -out…
helene
  • 1,201
  • 2
  • 18
  • 30
1
vote
1 answer

Mutal SSL authentication with Qt

I am new to ssl / networking and want to utilize mutal ssl ( client verifies server and server verifies peer) I found a white paper (http://www.infidigm.net/articles/qsslsocket_for_ssl_beginners/) online that gave me some guidance for setting up my…
1
vote
0 answers

How to implement a ftp over tls client by qsslsocket?

In FTPS, the client connect to the server, the server sending a welcome message; thus, then client send command "AUTH TLS",the server set Certificate、PrivateKey and startServerEncryption; what should the client do to finish this ssl…
zengyh
  • 11
  • 1
1
vote
1 answer

Qt 5.8 Apple Notification Server Handshake failed

i tried it some ours now but i could not get it to work. I want to push some notifications from a Qt Application. Tried to get it to work on macOS Sierra with Qt 5.8 installation and on Pi3 also with Qt 5.8. I created my push certificate with…
nivek
  • 151
  • 2
  • 7
1
vote
1 answer

Qt: Why is `QAbstractSocket::error(QAbstractSocket::SocketError)` signal not generated when internet is disconnected?

I am trying to achieve a signal when the internet is disconnected for an already connected SSL socket. Here is the way I have derived the QSslSocket: struct CloudSSL::Socket : public QSslSocket { Q_OBJECT public: void ConnectSlots () { …
iammilind
  • 68,093
  • 33
  • 169
  • 336
1
vote
1 answer

How to install OpenSSL 1.1.0 for Qt on Windows?

My goal is to get the source code (or images) from a webpage over a SSL connection using QNetworkRequest with the QNetworkAccessManager. OpenSSL 1.1.0 doesn't work with Qt 5.8! Look in Edit 2 for the install solution! First Try: Get the…
Darkproduct
  • 1,062
  • 13
  • 28
1
vote
1 answer

QSslSocket: cannot call unresolved function SSLv23_client_method

I am trying to call http and https and trying to parse the response. I am getting the reponse for http calls but for https calls I am getting this error QSslSocket: cannot call unresolved function SSLv23_client_method QSslSocket: cannot call…
1
vote
1 answer

Ssl Server using QSslSocket in Qt

I have implemented a ssl server using QSslSocket and run it correctly. But I have some problem with it that I couldn't solve them immediately. I thought that just connecting readyRead() signal to a slot for reading buffer is sufficient to do that…
Ehsan Maiqani
  • 1,684
  • 1
  • 14
  • 16
1
vote
1 answer

compilation of Qt 5 fails under make in debian64

I tried to make qt 5.4.1 with openSsl configuration but i got some errors during make it. I configured it as bellow : OPENSSL_LIBS='-L/usr/local/ssl/lib -lssl -lcrypto' ./configure -prefix $PWD/qtbase -opensource -debug-and-release -nomake tests…
Ebrahimi
  • 1,209
  • 8
  • 15
1
vote
1 answer

QSslSocket error: Issuer certificate could not be found

I am developing an application on Windows which should connect to a server. Therefore I implemented a QSslSocket. After the execution of the connection method the sslSocket errorString sends The issuer certificate of a locally looked up certificate…
3ef9g
  • 781
  • 2
  • 9
  • 19
1
vote
1 answer

Build PyQt5 on Windows with OpenSSL support?

I'm trying to build PyQt5 with SSL support but, until now, I have no success at all. What I have done: Rebuild Qt with OpenSSL Support: OK configure.exe -static -debug-and-release -opensource -confirm-license -nomake examples -nomake tests -opengl…
Diogo
  • 1,086
  • 8
  • 15
1
vote
1 answer

What is the minimum dependence to use QtNetwork classes

I want to use QTcpSocket and QSslSocket in my shared library, but I confused by necessity to create QCoreApplication. Maybe I'm mistaken and there is no need to create QtCoreApplication ? What is the minimum dependence to use Qt Sockets?
Dcow
  • 1,413
  • 1
  • 19
  • 42