Open fotiskoun opened 2 years ago
To establish a TLS connection you need to construct a tls::Cert
object with the cert
, cacert
and key
files and then pass this object on RpcTlsClient
. In order to create a connection without certification, but still a TLS connection (a.k.a. to https://
server), it is probably better to create a tls::Cert
object with nullptr
s on the files and auth_required_=false
and pass this object on the RpcTlsClient
connection, instead of passing in the RpcTlsClient
constructor a nullptr
argument on the tls_cert
argument.
There is the case that the user may not want to add certificates. Make this optional and test to one of the other sample servers that it connects and gets correct results