swagger-codegen icon indicating copy to clipboard operation
swagger-codegen copied to clipboard

[Python] TLS support

Open madhuri-rai07 opened this issue 11 years ago • 5 comments

I want to use TLS connection in python generated client code. But not sure how to pass client certificate and key file. I see urllib3 is used which supports TLS.

madhuri-rai07 avatar Sep 25 '15 12:09 madhuri-rai07

@madhuri-rai07 you can find the setting in the configuration class: https://github.com/swagger-api/swagger-codegen/blob/master/samples/client/petstore/python/swagger_client/configuration.py#L94

wing328 avatar Sep 25 '15 14:09 wing328

@wing328 @geekerzp This is just to pass own CA certificate file but what about client certificate file and client keyfile?

madhuri-rai07 avatar Sep 25 '15 17:09 madhuri-rai07

@madhuri-rai07 Add support in pr https://github.com/swagger-api/swagger-codegen/pull/1300

geekerzp avatar Sep 26 '15 09:09 geekerzp

Thank you @wing328 @geekerzp

madhuri-rai07 avatar Sep 26 '15 15:09 madhuri-rai07

@madhuri-rai07 PR merged into master. Please test and let us know if it still does not fully meet your requirement.

wing328 avatar Sep 29 '15 06:09 wing328