3lvis/Networking

Add support for using TLS (HTTPS)

nttravn opened this issue · 8 comments

Hello,
I wanna setup https for all connections. So how to config it?
Thanks,

3lvis commented

Could you expand on this? How is that done using NSURLSession?

Hello,
My server is applying https for all requests from app. So I must implement https for it.
Thanks,

3lvis commented

I'm using this with a server that uses HTTPS and I don't have problems. Could you explain what exactly your problem is?

I use this:

self.networking = Networking(baseURL: "https://api.myapp.com")
3lvis commented

I'm sure I can find a way to add better support for this if you could share more details :)

Hi 3lvis,
My server did implement TLS for HTTPS. I will apply a cer file into my project app and configure any request from app to server side for using HTTPS.

I did implement this with Alamofire:
screen shot 2016-09-29 at 10 06 04 am

How to config path to cer file when we use:
self.networking` = Networking(baseURL: "https://api.myapp.com")

Thanks 3lvis :)

3lvis commented

@nttravn Thanks for that! Right now we don't have support for that but I see how it could be useful. I'll try to add it when I got some more time, meanwhile feel free to implement it yourself, sounds like a nice programming excessive to learn more about NSURLSession.

Thanks 3lvis :).
Have a nice day.