How to connect via API?
-
-
wrote on 18 May 2019, 10:32 last edited by
downloaded openssl-1.1.1b and put it in the folder with the executable file. Did not help.
In openssl-1.1.1b there is no libeay32.dll. -
wrote on 18 May 2019, 13:26 last edited by
There is a file e_os.h in the main folder of the library .
-
What version of Qt are you using ?
-
I installed everything in MaintenanceTool. Do I need to download additional OpenSSL?
If you need to install OpenSSL, then how to connect it to Qt?wrote on 19 May 2019, 07:59 last edited by -
wrote on 19 May 2019, 08:05 last edited by
I use Qt 5.12.2
-
Then try again with the latest version of the 1.0 series.
-
wrote on 20 May 2019, 08:21 last edited by
I downloaded openssl-1.0.2r. There is no bin folder. No .exe files. No libeay32.dll. What to do with it?
-
wrote on 20 May 2019, 08:28 last edited by
I downloaded libeay32.dll ssleay32.dll and put them to the executable file and the project, but it still does not work.
-
Still the same error or another one ?
-
wrote on 21 May 2019, 08:20 last edited by
Same error: TLS initialization failed
-
Did you check whether you can connect to another https resource and if it triggers the same error ?
-
wrote on 22 May 2019, 08:41 last edited by
Not check. I don't know what other resource to connect to.
-
This post is deleted!
-
wrote on 23 May 2019, 11:13 last edited by
How to fix this error?
-
wrote on 23 May 2019, 13:55 last edited by
@Mikeeeeee you may try a JSON testing site with secure connections, like https://jsonplaceholder.typicode.com
i.e. https://jsonplaceholder.typicode.com/todos/1 will return:
{ "userId": 1, "id": 1, "title": "delectus aut autem", "completed": false }
-
wrote on 23 May 2019, 14:34 last edited by
@Pablo-J.-Rogina said in How to connect via API?:
Tried to send to this address and got an old error.
-
wrote on 23 May 2019, 14:37 last edited by
And if you sent"http://json placeholder.typecode.com/todos/1" it works. Why https doesn't work?
-
Just to be sure add this to your code:
qDebug() << QSslSocket::supportsSsl(); qDebug() << QSslSocket::sslLibraryBuildVersionString(); qDebug() << QSslSocket::sslLibraryVersionString();
-
wrote on 24 May 2019, 08:29 last edited by
qDebug returns:
qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
false
"OpenSSL 1.0.2p 14 Aug 2018"
31/66