klippa-app/nativescript-http

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

spololacasa opened this issue · 6 comments

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

It seems to be possible in OkHttp and NSURLSession.

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

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

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

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.

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.

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.