Skip to content
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

feature: introduce get cert #156

Merged
merged 1 commit into from Jun 12, 2020

Conversation

bamorim
Copy link
Contributor

@bamorim bamorim commented Jun 1, 2020

First of all, thanks for this code! Awesome work.

This is similar to #119, but for :cowboy_req.cert/1

The motivation behind came because I'm implementing a IoT system and wanted to use Mutual TLS to identify the device, using the Common Name for that.

For that, I needed access to the client certificate so I could fetch the CN and finally uniquely identify the device, but gRPC didn't gave me access to the client certificate, so I ended up implementing this PR.

I still need to test that it returns the client certificate, but that would require me generating client keys and stuff, and it is already pretty late here, so I'll leave for another day.

Wanted to create the PR to check if you are interested in this.

Cheers

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.

None yet

2 participants