Skip to content

Add client certificate option. #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 10, 2022

Conversation

dencrypt-jacob
Copy link
Contributor

I need to be able to use a client certificate and a private key when setting up a client connection.

I added a new createDefaultClientConfigShared method for this purpose.
Also, I prefer the mbedtls methods using memory buffers instead of files, so that's what I did.
And... I used std::string, not const char*.

Please let me know what you think about the changes.

@lganzzzo
Copy link
Member

lganzzzo commented Dec 4, 2021

Hey @dencrypt-jacob ,

Thanks for the PR and sorry for the late reply - I've lost this PR among other notifications.
Please feel free to mention me on the PR/issue if you don't get a reply in max two days.


So far changes look good. And this feature is definitely the must-have for this and other TLS modules.

I have to make some tests - will get back to you.

Regards,
Leonid

@dencrypt-jacob
Copy link
Contributor Author

Hey @lganzzzo. Thanks for approving my other PRs (linking oatpp-test).
Did you have a chance to look at this one?

@lganzzzo lganzzzo merged commit 6f92e1f into oatpp:master Jan 10, 2022
@lganzzzo
Copy link
Member

Merged!
Great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants