p4lang / p4runtime-shell

An interactive Python shell for P4Runtime
Apache License 2.0
76 stars 40 forks source link

support for skipping TLS certificates validation #101

Closed hellt closed 1 year ago

hellt commented 1 year ago

Hi all,

would it be possible to implement an --skip-tls-verify option that will allow TLS certificates but won't require a user to provide a CA file to validate the certificate? It is cumbersome to work with network OSes that mandate the use of TLS for gRPC in lab scenarios where certification verification is not a concern.

antoninbas commented 1 year ago

I don't know if this is possible with the Python gRPC library. If it is possible, feel free to submit a PR with your proposed changes.

hellt commented 1 year ago

Yes, it seems you're right; the skip-verify callback is not available in grpc-py... I will check if p4-go client can satisfy my needs, thanks.