Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. ssl
    Log in to post
    • All categories
    • P

      Unsolved QNetwork: making queries using QSslConfiguration and PKCS12
      General and Desktop • ssl pkcs12 qnetwork • • plaristote

      2
      0
      Votes
      2
      Posts
      44
      Views

      C

      Does your QNetworkAccessManager emit encrypted() or sslErrors() signals? If so, what errors?

    • S

      Solved qml: Error: SSL Sockets are not supported on this platform.
      QML and Qt Quick • qml ssl sockets • • Sam.Hay

      5
      0
      Votes
      5
      Posts
      205
      Views

      S

      @SGaist Yeah I ended up setting environment variables to point to the OpenSSL install inside of Qt. That ended up solving my problems.

    • Romain C

      Unsolved Proper deployment of Qt app (requiring SSL) on MacOS
      General and Desktop • macos ssl • • Romain C

      12
      0
      Votes
      12
      Posts
      445
      Views

      artwaw

      @Romain-C it is really odd - however I didn't do much work on High Sierra (it is very outdated). On Catalina and BigSur SSL support works out-of-the-box though.
      Are you able to examine server side logs by any chance? This could help you to check if any connection is being made...

      With regards to errors you should examine if QNetworkManager::SslErrors() signal is being emitted (simply connect to it) (I assume anonymousRequests is of type QNAM)

    • CybeX

      Unsolved how to statically compile Qt using MinGW compiler and SSL support
      Installation and Deployment • qt 5 ssl openssl qmake static build • • CybeX

      4
      2
      Votes
      4
      Posts
      576
      Views

      G

      i am facing the same nightmare. it's 2weeks i'm stuck tryin' to obtain my static +openssl build and...no way.

      No issues compiling without openssl support.

      Any progress on that? Seems that nobody wants to help :(

    • M

      Unsolved WebAssembly: Https request with custom certificate
      Qt for WebAssembly • https ssl webassembly certificate • • Mixlu

      5
      0
      Votes
      5
      Posts
      779
      Views

      hskoglund

      Well WebAssembly is pretty strict, if you want to make https requests you need to use a proxy/bridge program that translates from websockets to http, it's installed on a PC on the same LAN as the WebAssembly PC (or on the same PC). For example you could use this one: https://github.com/novnc/websockify

    • forca

      Unsolved Qt 5.12.3 QtWebEngine + QWebPage + SSL: verify server cert on client side (picture inside)
      QtWebEngine • qtwebengine qwebpage ssl certificate server - client • • forca

      2
      0
      Votes
      2
      Posts
      1262
      Views

      Pablo J. Rogina

      @forca maybe you need to do some additional steps

      From QSslSocket documentation:

      Describes the peer verification modes for QSslSocket. The default mode is AutoVerifyPeer, which selects an appropriate mode depending on the socket's QSocket::SslMode.
      QSslSocket::QueryPeer 1
      QSslSocket will request a certificate from the peer, but does not require this certificate to be valid. This is useful when you want to display peer certificate details to the user without affecting the actual SSL handshake. This mode is the default for servers. Note: In Schannel this value acts the same as VerifyNone.

      And looking at this QWebEnginePage browser example, check the Downloading Favicons code snippet, which may help you accessing the underlying QSslSocket

    • Qjay

      Solved Error : "Protocol \"https\" is unknown"
      General and Desktop • qtnetwork ssl openssl network error qt • • Qjay

      9
      0
      Votes
      9
      Posts
      2151
      Views

      Qjay

      hey i didn't fixed it . i downloaded Qt5.12.4 and then upgraded my openssl lib to 1.1.1b

      so i am good now
      thanks !!

    • B

      Solved SSL problem on linux/windows
      General and Desktop • ssl segfault openssl linux • • borghe

      7
      0
      Votes
      7
      Posts
      1891
      Views

      SGaist

      Hi,

      Not the same backend used. Unless you re-build Qt and force the use of OpenSSL. Qt on macOS uses Apple's SecureTransport framework. OpenSSL on that platform has been deprecated a long time ago.

    • K

      Unsolved SSL connection error: unknown error number QMYSQL: Unable to connect
      General and Desktop • mysql ssl ssl error • • koahnig

      5
      0
      Votes
      5
      Posts
      2523
      Views

      K

      @SGaist

      I have OpenSSL recently installed, but I am stating explicitly "no" for SSL connection option in MySql workbench.
      The connection give a warning, but this relates to the workbench version which seem to be higher than the actual MySql install at the web domain. No mention of SSL at all there.

      Since I have not really used OpenSSL I am lost on those parameters as used above. They are from the Qt document example and potentially completely wrong

    • E

      Solved Problems connection to WSS with QWebSocket
      General and Desktop • qwebsocket error ssl tls openssl • • erazem

      5
      0
      Votes
      5
      Posts
      3403
      Views

      E

      Ok, thanks for the reply. It pointed me in the correct direction and after many failures I finally figured it out.
      I guess you only learn when you need to dig deep.

      The only thing I had to do was install the correct version of openSSL. Since it is my first time I had no idea what the letter actually meant, I picked the first build, which was version g, I had to install version n.

      For all future wanderers, the only thing you need to do to make the client work is one of the two options:

      Just copy ssleay32.dll and libeay32.dll to working directory OR Install the latest version and set PATH to the folder where the two dlls are located.

      After that you can use QWebSocket without even knowing SSL exists. Just call:

      QWebSocket socket; socket.open( QUrl("someaddress") );

      And, when the dlls are found the warnings disappear.

      That's it.

    • B

      Unsolved Is there some people using QtRO ?
      General and Desktop • qtro qtremote tcp ssl • • batcher

      2
      0
      Votes
      2
      Posts
      704
      Views

      SGaist

      Hi,

      You should rather bring this to the interest mailing list. You'll find there the QtRemoteObject developers/maintainers. This forum is more user oriented.

    • Q

      Solved Configure ERROR in Qt 5.8.0 Win + VC2013 + SSL + OpenSSL
      General and Desktop • qt5.8.0 vc2013 ssl openssl configure • • qDebug

      22
      0
      Votes
      22
      Posts
      16086
      Views

      Q

      @kfrosty Thank you! Did work for me too! :)

    • OBsIV XIM

      Solved Unauthorized access to libcrypto.so/libssl.so even though not using SSL
      Mobile and Embedded • networking ssl • • OBsIV XIM

      3
      0
      Votes
      3
      Posts
      2120
      Views

      OBsIV XIM

      Thanks. Path of least resistance was build OpenSSL for Android and deploy with our app.

    • M

      Unsolved Using QSslSocket with custom OpenSSL
      General and Desktop • c++ qt openssl ssl windows 10 • • MChelik

      41
      0
      Votes
      41
      Posts
      26856
      Views

      SGaist

      IIRC there was a renaming of the libraries of OpenSSL so you'll have to double check.

    • M

      Unsolved SSL Client/Server Handshake
      General and Desktop • client server - client ssl handshake • • marlenet15

      4
      0
      Votes
      4
      Posts
      5549
      Views

      V

      The handshake is the process that establishes the secure connection, in Qt QSslSocket::connectToHostEncrypted and QSslSocket::startServerEncryption take care of the handshake. The "Hello Word" sent across is just normal TCP communication that could be done even without encryption (i.e. using QTcpSocket)

    • Mkowalik-Mimesis

      Unsolved Qml image SSL error
      QML and Qt Quick • ssl qml network • • Mkowalik-Mimesis

      2
      0
      Votes
      2
      Posts
      1236
      Views

      raven-worx

      @Mkowalik-Mimesis
      and why does it crash?
      What is the value of incoming QNetworkReply* ?
      Are you doing any fancy deletes?

      in your CustomNetworkManagerFactory::create() you get a QObject* passed as a parent for the QNAM to create. But you set the parent to the this pointer instead. it would be cleaner not to couple the created QNAM with your factory class by connecting signals and slots of them. Instead you should subclass QNAM, move the onIgnoreSSLErrors() slot to it and connect it to itself instead. you are overwriting your local m_networkManager member variable everytime create() is called. Which doesn't go along with a factory implementation ;)

      I don't know if this already solves your crash, it may be.

    • moffa13

      Unsolved Problem with a QTcpSocket
      General and Desktop • socket ssl • • moffa13

      14
      0
      Votes
      14
      Posts
      4895
      Views

      M

      I currently have a very similar problem. I'm implementing a send mail client which should gracefully fall back to an unencrypted connection if encryption fails (and the user has decided to go ahead anyway). For that purpose I've connected to the QAbstractSocket::error() signal.

      While I do get the signal it's ultimately moot since the code in question (QSslSocketBackendPrivate::startHandshake() in qsslsocket_openssl.cpp) immediately closes the socket by calling QSslSocket::abort() after emitting the signal. Because of that calling QSslSocket::ignoreSslErrors() is never an option.

      I currently have no workaround in place. Maybe the only solution is to connect to the disconnected() signal and then check whether the connection was closed because of a handshake error. If it was, then open a new unencrypted socket/connection. I'm open to suggestions, though... :-)

    • O

      Solved SSL failure / certificate problem
      General and Desktop • qtcpserver qtcpsocket qssl ssl cipher • • onek24

      2
      0
      Votes
      2
      Posts
      2477
      Views

      O

      Fixed the problem:

      On Client-Side and on Server-Side i provide the following:

      Private key of the certificate Public key of the certificate Public key of the CA

      An connection is established. I am getting an SSLError: "The certificate is self-signed and untrusted", but i can either ignore it using ignoreSslErrors(); or the better method is by comparing the certificates to make sure it's all good.
      Also i have re-created my certificates and my CA with the correct information, because I haven't provided the CN for localhost since i was testing on my local machine with my old certificates.

      Anyways, the communication works with correct certificates.

    • A

      Solved how to download a file from ssl
      General and Desktop • ssl • • ARASHz4

      16
      0
      Votes
      16
      Posts
      3603
      Views

      A

      @the_ I fixed this bug.
      Thank you.