open-traffic-generator / openapiart

OpenAPI artifact generator
MIT License
6 stars 4 forks source link

Secured connection for python sdk #448

Closed Vibaswan closed 11 months ago

Vibaswan commented 11 months ago

Fixes #446 Now we can connect on secured grpc server

api = snappi.api(location="localhost:5001", transport="grpc", version_check=False)
# first path is mandatory path to the certificate , second arg is optional for those certiface which needs there ssl targets top be overriden
api._use_secure_connection(r"C:\pycharm_projs\otg-ixhw-c\api\cert\server\server.crt", cert_domain="example.org")