Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #5306
Closed
Open
Issue created Feb 13, 2020 by Administrator@rootContributor

[REQ] Support client certificates for csharp-netcore

Created by: jornhd

Is your feature request related to a problem? Please describe.

The API I'm using authenticates by a client certificate. RestSharp that's used for csharp-netcore, supports this, but as the RestClient is not exposed (like in the old csharp version), it's not possible for me to provide the certificate collection.

Describe the solution you'd like

  • Add a new property in the configuration (IReadableConfiguration/Configuration) of type System.Security.Cryptography.X509Certificates.X509CertificateCollection (as the RestSharp property).
  • If the new property is not null, set RestClient.ClientCertificates from configuration in ApiClient.Exec and ApiClient.ExecAsync before running the request.

Describe alternatives you've considered

Creating the RestClient in the ApiClient constructor and expose it as a property, like in the csharp version.

Assignee
Assign to
Time tracking