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

is there support to select/send a client certificate(for authentication PKCS12) during the TLS handshake? #22

Open
spololacasa opened this issue Apr 6, 2021 · 6 comments

Comments

@spololacasa
Copy link

my api request requires a client certificate (pkcs12). Can I send/select during the request?

@jerbob92
Copy link
Contributor

jerbob92 commented Apr 6, 2021

It seems to be possible in OkHttp and NSURLSession.

It's quite complicated though. I'll accept PR's for it

@spololacasa
Copy link
Author

Can you tell me how to do it? I would be very gratefull.

@jerbob92
Copy link
Contributor

jerbob92 commented Apr 6, 2021

Can you tell me how to do it? I would be very gratefull.

I linked two pieces of code how to implement it in native code, meaning it would technically be possible to implement it into this plugin, but it's not currently supported.
The Android (OkHttp) code should be implemented here and here.
The iOS (NSURLSession) code here

@spololacasa
Copy link
Author

Thank you for answering so quickly. I am going to try to implement it, but I don't know if I will succeed as I have never developed native code.

@spololacasa
Copy link
Author

Hello, I am overwhelmed. I've been trying for three weeks but I can't find it. Could you help me how to do it.

@jerbob92
Copy link
Contributor

Hello, I am overwhelmed. I've been trying for three weeks but I can't find it. Could you help me how to do it.

Can you tell me how far you came in your approach? Any repo on Github that I can take a look at?
It's quite some work to implement, and I'm not really interested in it so I'm probably not going to build it myself.

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

No branches or pull requests

2 participants