Results 1 to 12 of 12

Thread: qtsoap - ssl errors for HTTPS

  1. #1
    Join Date
    Mar 2010
    Posts
    13
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default qtsoap - ssl errors for HTTPS

    Im using the open source edition of QtSoap and Im able to send a soap message and get the response to a HTTP, but it doesn't work on HTTPS and it gives me the error of:

    QSslSocket: cannot call unresolved function SSLv3_client_metho
    QSslSocket: cannot call unresolved function SSL_CTX_new
    QSslSocket: cannot call unresolved function SSL_library_init
    QSslSocket: cannot call unresolved function ERR_get_error
    QSslSocket: cannot call unresolved function ERR_error_string

    And the soap message reply was:

    Network transport error (99): Error creating SSL context ()

    Im running on Windows7 and my qtcreator version is 4.6.0. I tried searching the internet and I followed their method of installing openSSL and including the libeay32.dll and ssleay32.dll into my project folder and also in the Qt bin folder. I'm not sure where I went wrong, so any advice would be good, thanks

    P.S I'm using QtSoapHttpTransport

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: qtsoap - ssl errors for HTTPS

    Is your Qt built with SSL support at all?

  3. #3
    Join Date
    Mar 2010
    Posts
    13
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: qtsoap - ssl errors for HTTPS

    I tried following this link http://greensoftware.net/blog/2009/1...ws-with-mingw/ and Ive already downloaded and installed opensll from http://www.slproweb.com/products/Win32OpenSSL.html but when I tried to re-build my Qt following the steps from the 1st link, it gave a ton of errors related to SSL. So I'm not sure where I went wrong..

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: qtsoap - ssl errors for HTTPS

    Could you quote the first few errors?

  5. #5
    Join Date
    Mar 2010
    Posts
    13
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: qtsoap - ssl errors for HTTPS

    Here's is a fragment of the error I got after running mingw32-make

    ssl\qsslsocket_openssl_symbols_p.h:293: error: 'SSL' was not declared in this scope
    ssl\qsslsocket_openssl_symbols_p.h:293: error: 'a' was not declared in this scope
    ssl\qsslcertificate.cpp: In static member function 'static QSslCertificate QSslC
    ertificatePrivate::QSslCertificate_from_X509(X509* )':
    ssl\qsslcertificate.cpp:687: error: 'ASN1_TIME' was not declared in this scope
    ssl\qsslcertificate.cpp:687: error: 'nbef' was not declared in this scope
    ssl\qsslcertificate.cpp:687: error: 'X509_get_notBefore' was not declared in this scope
    ssl\qsslcertificate.cpp:688: error: 'naft' was not declared in this scope
    ssl\qsslcertificate.cpp:688: error: 'X509_get_notAfter' was not declared in this scope
    mingw32-make[2]: *** [tmp/obj/debug_shared/qsslcertificate.o] Error 1
    mingw32-make[2]: Leaving directory `C:/Qt/2010.02.1/qt/src/network'
    mingw32-make[1]: *** [debug-all] Error 2
    mingw32-make[1]: Leaving directory `C:/Qt/2010.02.1/qt/src/network'
    mingw32-make: *** [sub-network-make_default-ordered] Error 2

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: qtsoap - ssl errors for HTTPS

    Do you have includes for the SSL library available where the compiler can find them?

  7. #7
    Join Date
    Mar 2010
    Posts
    13
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: qtsoap - ssl errors for HTTPS

    I followed the example here http://greensoftware.net/blog/2009/1...ws-with-mingw/ and did the SET PATH and so on, doesn't that let the compiler know where to find the SSL library? Or where should I put the SSL library into? By default after I install OpenSSL, it appears on C:/OpenSsl and in SET PATH and so on, I put it to point to this folder..

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: qtsoap - ssl errors for HTTPS

    The link is broken so it's hard to say what is sufficient But include files are not looked for in the PATH so it's probably safe to assume setting the PATH is not enough. You need to tell the Qt build process where to find OpenSSL. Run configure.exe with -help and read through the output.

  9. #9
    Join Date
    Mar 2010
    Posts
    13
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: qtsoap - ssl errors for HTTPS

    Here is the link again http://greensoftware.net/blog/2009/1...ws-with-mingw/. It says to type in

    SET LIB=c:\openssl\lib\mingw;%LIB%
    SET INCLUDE=c:\openssl\include;%INCLUDE%
    SET PATH=c:\openssl;%PATH%

    Am I supposed to type in exactly %LIB% or am I supposed to type in %LIB% with something else after it?

  10. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: qtsoap - ssl errors for HTTPS

    Type in what they said to type in.

  11. #11
    Join Date
    Mar 2010
    Posts
    13
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: qtsoap - ssl errors for HTTPS

    I did, but I still got the same error I mentioned some posts earlier..I think its because the https is asking for the ssl certificate add exception part and my soap message can't go through because of this?

  12. #12
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: qtsoap - ssl errors for HTTPS

    But did you rebuild Qt after typing those lines?

Similar Threads

  1. QtSoap problems
    By voodig in forum Qt Programming
    Replies: 1
    Last Post: 27th November 2014, 12:52
  2. QtSoap and .NET urgently need help
    By noo in forum Qt Programming
    Replies: 9
    Last Post: 2nd November 2009, 17:04
  3. qtsoap with .net webservice
    By drbergie in forum Qt Programming
    Replies: 11
    Last Post: 12th February 2009, 08:46
  4. QtSoap
    By ComaWhite in forum Qt Programming
    Replies: 5
    Last Post: 2nd March 2008, 15:54
  5. qtsoap
    By anoop in forum Qt Programming
    Replies: 17
    Last Post: 14th February 2007, 23:41

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.