SSL support for Android
-
Hi,
I'm using Qt 5.14.2 on Win10.I create little Qt/QML Android program which use https request from internet.
When I run it on Windows it works because I add Qt openSSL bin directory to path. I added below code to my program.
qDebug()<<"----"<<QSslSocket::sslLibraryBuildVersionString(); qDebug()<<"----"<<QSslSocket::sslLibraryVersionString();
And the console output is on Win10
---- "OpenSSL 1.1.1d 10 Sep 2019" ---- "OpenSSL 1.1.1d 10 Sep 2019"
But When I run the program on Android the console output is:
D libMobilApt_armeabi-v7a.so: ---- "OpenSSL 1.1.1d 10 Sep 2019" D libMobilApt_armeabi-v7a.so: ---- ""
I have OpenSSL configurtion on QtCreator Devices>>Abdroit tab like below:
Well, what should I do now?
Regards,
Mucip:) -
@Mucip
You can also directly add the external libs as below with Add button ( Kind of easy way which i use ).
This worked for me.Project -> Build Settings -> Build Steps Under Build Android APK -> Additional libraries
Where you can Add / Remove the libs
All the best.
-
@Mucip said in SSL support for Android:
Well, what should I do now?
I guess you have to deploy OpenSSL libs together with your app to the device?
-
-
@Mucip
You can also directly add the external libs as below with Add button ( Kind of easy way which i use ).
This worked for me.Project -> Build Settings -> Build Steps Under Build Android APK -> Additional libraries
Where you can Add / Remove the libs
All the best.
-
Hi @Pradeep-P-N
Where can I find these libraries which you add in shown in picture?Regards,
Mucip:) -
@Pradeep-P-N ,
My setting page like below but still same problem:
How can I check that I have libssl and if not, where can I fint it?
Regards,
Mucip:) -
Hi @Pradeep-P-N ,
I got it sir. ;)I downloaded latest build file from here and add this files to the Additional Libraries like you show in picture.
Now everythin is work fine in Android.
Regards,
Mucip:)