Recently I have been communicating with a server via http with a LC client in an anonymous mode. I can both read and write data using tsNet external. Now I'm trying to set up the security issues, switch to HTTPS instead and start Authentication.
First I'm testing the HTTPS connection without authentication. It seems to work but I'm having certificate issues. If I set
Code: Select all
tsNetVerifySSLPeer false
If I understand correctly, the server must trust the client and the client must trust the server. Therefore, I need to put the server's certificate in my LC client. And also put the LC client's certificate into the server's.
I placed the server's certificated into LC client with
Code: Select all
tsNetCABundle specialFolderPath("resources") & "/certificates/MyCertificate.der"
And also when I'm making connections with databases middleware, also using tsNet but another URL then I get CERT_TRUST_IS_PARTIAL_CHAIN error. I need to do
Code: Select all
tsNetCABundle empty
Any help here? I do not understand much of SSL certificates. Thanks!