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

Support for SSL connections using self-signed certificates #89

Open
pk1 opened this issue Jul 17, 2016 · 1 comment
Open

Support for SSL connections using self-signed certificates #89

pk1 opened this issue Jul 17, 2016 · 1 comment

Comments

@pk1
Copy link

pk1 commented Jul 17, 2016

Hi,

since Apple introduced ATS (App Transport Security) normal HTTP connections are not allowed anymore. Of course you can bypass this as long as you're still in development mode and you don't need to publish your app on the app store. Same applies to connections you need to establish to servers using a self-signed SSL certificate.

The problem now is that as far as I can see Heimdallr is not able to use SSL connections with self-signed certificates on the server-side (at least during development there should be no need to pay money for an official SSL certificate). Is there any change to implement this feature in Heimdallr so connections to servers with a self-signed certificate can be used?

Thanks for all your work so far!!

@hffmnn
Copy link
Contributor

hffmnn commented Jul 22, 2016

Hi,

I would say you just have implement your own HTTPClient class, conforming to the HeimdallrHTTPClient protocol, give it to Heimdallrs initializer and you should be good to go.

If this does not work (or I missed something) please ping back here.
If it works: Please ping back here and feel free to post/gist your solution 😄

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