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

Fail on https url (self-signed certificate) #7

Closed
ikipatang opened this issue Apr 6, 2015 · 17 comments
Closed

Fail on https url (self-signed certificate) #7

ikipatang opened this issue Apr 6, 2015 · 17 comments
Milestone

Comments

@ikipatang
Copy link

Hi, thank you for this app.
Hi, first of all thank you for this app.

The https urls seems to not be supported although there is the option.
When i test the settings on my own server, it tells me there is a problem on the url.

You can test it on the free shaarli service from shaarli.fr.
https://my.shaarli.fr/ikipatang : the test doesn't work.
http://my.shaarli.fr/ikipatang : work.
I tried the go to of the app and could go on the shaarli for both urls.

I don't want to authorize http on my server, do you think you can find what is goind on ?

Thank you.

@dimtion
Copy link
Owner

dimtion commented Apr 6, 2015

Thanks for your report.
Firstly your shaarli behavior is quite strange : the URL you given return a 404 unless I add a / at the end of the URL...

But I think the reason it doesn't work is probably because you have a self-hosted SSL certificate. The app only use (for the moment) the default android settings, which it doesn't accept (for security reasons) self hosted certificates.
For now you can :

  • Try to import your SSL certificate to your phone (somewhere in settings), not sure if it works
  • Or publish your certificate to a third party authority

I'll see if I can override default settings and do some further investigation (perhaps the bug is something else).
Thanks again !

@dimtion dimtion added the bug label Apr 6, 2015
@dimtion
Copy link
Owner

dimtion commented Apr 6, 2015

Here is a blog post on how to add your self-signed SSL certificate onto your android device : http://www.guyrutenberg.com/2013/03/16/manually-install-ssl-certificate-in-android-jelly-bean/

@Marsup
Copy link

Marsup commented May 15, 2015

FYI I did all that with the certificate, I see the root certificate (StartSSL's in my case) in the list so I guess it went OK, still same error.

@dimtion
Copy link
Owner

dimtion commented May 15, 2015

Quite strange, if your certificate is signed by StartSSL you should not need to install the certificate into your device nor the root one.
Do you means that just like @ikipatang, it works fine over HTTP but not over HTTPS ?

@dimtion dimtion removed the fixlater label May 15, 2015
@Marsup
Copy link

Marsup commented May 15, 2015

I have no HTTP to test with, I only use HTTPS, it's my own server.

@dimtion
Copy link
Owner

dimtion commented May 15, 2015

Does the error message says that the url is incorrect or that the Shaarli is incompatible ? Which "version" of Shaarli do you use ?

@Marsup
Copy link

Marsup commented May 15, 2015

I get the error_connecting string. Using the fork (shaarli/Shaarli).

@dimtion
Copy link
Owner

dimtion commented May 16, 2015

Ok, could you download this : Shaarlier_v1.2.0-debug.apk

Then try to reproduce the error message. The app should ask you if you want to send me an email. If you think there are to much personal information in the report, feel free to erase them (at least keep the error message).

Thanks in advance.

@Marsup
Copy link

Marsup commented May 16, 2015

OK I didn't send the email but that was helpful. I had forgotten to concatenate their pem with my crt, just misconfiguration. Thanks a lot !

@dimtion
Copy link
Owner

dimtion commented May 16, 2015

No problem ;)

@dimtion dimtion changed the title Fail on https url Fail on https url (self-signed certificate) May 17, 2015
@urza
Copy link

urza commented Aug 6, 2015

Hi I have similar problem. Though my certificate is not self signed, I bought it from popular CA in my country (Czech Republic) but Shaarlier wont connect to my server anyway. I have sent email report with details fr the app few days back.

@urza
Copy link

urza commented Aug 6, 2015

Would it be possible to add option to ignore certificate problems? Just allow me to connect anyway...

@Marsup
Copy link

Marsup commented Aug 6, 2015

@urza Chances are you badly set up your SSL certificate like I did, my error was I forgot to do the "Create a unified certificate from your certificate and the CA certificates" like told in that page.

@dimtion dimtion removed the fixlater label Nov 22, 2015
@dimtion dimtion added this to the v1.3.0 milestone Nov 22, 2015
@dimtion
Copy link
Owner

dimtion commented Nov 22, 2015

The implementation I chose for v1.3.0 is to allow the user to disable certificate validation if he wants. It not secured at all but it is a good workaround.

If the user really wants security I think he should add his certificate to his device keypass.

Have you any remarks on this workaround ?

@urza
Copy link

urza commented Nov 22, 2015

Wonderful exactly what I need. Thanks.

@dimtion
Copy link
Owner

dimtion commented Nov 22, 2015

Could you have a look at : https://github.com/dimtion/Shaarlier/releases/tag/v1.3.0-alpha

Please tell me if you have remarks or if you find any bug.

Thanks again for the feedback !

@dimtion dimtion closed this as completed Nov 25, 2015
@urza
Copy link

urza commented Nov 29, 2015

Works great for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants