Skip to content

[rust-server] no support for native CA certificate store #1215

Open
@bjgill

Description

@bjgill
Description

rust-server doesn't provide a simple method (or example) to create an HTTPS client/server that authenticates servers/clients against the system's native CA certificate store.

Instead, rust-server is designed so that you provide the path to a single CA certificate.

This means that using rust-server to talk to servers on the public web (e.g. Google) can be quite a pain.

openapi-generator version
OpenAPI declaration file content or url
Command line used for generation
Steps to reproduce
Related issues/PRs

Found in #1199 (comment)

Suggest a fix/enhancement

Provide a variant of Client::try_new_https that uses the native CA certificate store.

Maybe we could have ca_certificate: CA, CA: Into<Option<Path>?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions