Originally Posted by
ChrisW67
If you are not providing the client with a private key matching the client certificate then the server cannot be authenticating the client. If the server has the client's private key then security is broken anyway.
Actually Chris it's just the reverse. It's the server which is the CA, it generated the certificates containing the public key and other information and then provided those certificates to clients (mine is also a client). So, each and every time a client has to connect to it, it has to include the provided certificate during the handshake.
The Lower-Level API: Extending Qt Applications
Code that uses the plugin has to use headers that define the interfaces the plugin provides, but you do not reference the compiled plugin during compile and link of the user application.
Chris, I am getting certain undefined reference to ..... errors while I try to compile my program. The detailed scenario is that inside the debug folder of my program I did the following :-
1) I created a sub folder called lib which contained libcrypto.a, libeay32.a, libgdi32.a, libssl32.a and libssl.a.
2) I created another sub folder named openssl which had all the openssl header files.
3) I placed libeay32.dll, libssl32.dll, ssleay32.dll in the debug folder.
4) I added the following configurations to my .pro file:-
INCLUDEPATH += F:/EncryTrial/debug/openssl/ #EncryTrial is the name of my program
LIBS += F:/EncryTrial/debug/lib/libcrypto.a\
F:/EncryTrial/debug/lib/libssl.a\
F:/EncryTrial/debug/lib/libgdi32.a
INCLUDEPATH += F:/EncryTrial/debug/openssl/ #EncryTrial is the name of my program
LIBS += F:/EncryTrial/debug/lib/libcrypto.a\
F:/EncryTrial/debug/lib/libssl.a\
F:/EncryTrial/debug/lib/libgdi32.a
To copy to clipboard, switch view to plain text mode
5) To my mainwindow.h I added #include <QtNetwork/QSslSocket>.
After having done the above I added the below code to my mainwindow.cpp :-
QSslSocket socket;
socket.connectToHostEncrypted( "bugs.kde.org", 443 );
QSslSocket socket;
socket.connectToHostEncrypted( "bugs.kde.org", 443 );
To copy to clipboard, switch view to plain text mode
I am sure it's some library issue but just not able to figure it out.
Bookmarks