c++ - TLS server authentication -
i'm trying server authentication @ client, using boost c++ client program created rootca , client certificate , put certificate in 1 dir, , accessing certificate below getting "no certificate retured" error while handshake.
boost::system::error_code ec; context.set_verify_mode(boost::asio::ssl::verify_peer); context.add_verify_path("/etc/ipa/nssdb/rootca", ec); std::cout<<"add_verify_path error : "<< ec <<std::endl; context.load_verify_file("/etc/ipa/nssdb/ca-chain.cert.pem", ec); std::cout<<"load_verify_file error : "<< ec <<std::endl;
i missing or doing wrong during certificate loading.
Comments
Post a Comment