fotiskoun / CCF

Confidential Consortium Framework
https://microsoft.github.io/CCF
Apache License 2.0
2 stars 0 forks source link

Add optional certificates addition #64

Open fotiskoun opened 2 years ago

fotiskoun commented 2 years ago

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

fotiskoun commented 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 nullptrs 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.