[RCF-OPENSSL] Error in client
Posted: Wed Jan 29, 2014 2:36 pm
Hi Jarl,
I am trying out openssl transport security.
Server side works fine ::
RCF::CertificatePtr serverCertPtr( new RCF::PemCertificate("C:\\serverCert.pem", "password") );
server.setCertificate(serverCertPtr);
Client side i have implemented callback function ::
bool opensslValidateCert(RCF::Certificate * pCert){ return true;}
client.getClientStub().setCertificateValidationCallback(&opensslValidateCert);
which gives me following error at client ::
Open-Caught RCF exception:Failed to load OpenSSL certificate file. File: rcf_srv.pem. OpenSSL error: 140195642599040:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:696:Expecting: TRUSTED CERTIFICATE
140195642599040:error:140DC009:SSL routines:SSL_CTX_use_certificate_chain_file:PEM lib:ssl_rsa.c:729:
Compiling on gcc, included OpenSslEncryptionFilter.hpp
Please suggest a solution.
Thanks
I am trying out openssl transport security.
Server side works fine ::
RCF::CertificatePtr serverCertPtr( new RCF::PemCertificate("C:\\serverCert.pem", "password") );
server.setCertificate(serverCertPtr);
Client side i have implemented callback function ::
bool opensslValidateCert(RCF::Certificate * pCert){ return true;}
client.getClientStub().setCertificateValidationCallback(&opensslValidateCert);
which gives me following error at client ::
Open-Caught RCF exception:Failed to load OpenSSL certificate file. File: rcf_srv.pem. OpenSSL error: 140195642599040:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:696:Expecting: TRUSTED CERTIFICATE
140195642599040:error:140DC009:SSL routines:SSL_CTX_use_certificate_chain_file:PEM lib:ssl_rsa.c:729:
Compiling on gcc, included OpenSslEncryptionFilter.hpp
Please suggest a solution.
Thanks