floccus icon indicating copy to clipboard operation
floccus copied to clipboard

[iOS] Self-signed certificates not working

Open cmalvi opened this issue 3 years ago • 18 comments

Which version of floccus are you using?

Lastest from App Store

Sync method

{"label"=>"Nextcloud Bookmarks"}

Which browser are you using? In case you are using the Android App, specify the Android version please.

No response

Which version of Nextcloud Bookmarks are you using? (if relevant)

No response

Which version of Nextcloud? (if relevant)

No response

What kind of WebDAV server are you using? (if relevant)

No response

Describe the Bug

After install the app, just launched, then selected the NextCloud Bookmarks option and insert the url of my Nextcloud instance, as already did it for the browser extension on my computers. The app keep loading without going further in the setup wizard

Expected Behavior

Proceed in the setup

To Reproduce

Already wrote in the description part

Debug log provided

  • [ ] I have provided a debug log file

cmalvi avatar Jun 17 '22 13:06 cmalvi

Hello!

Which iOS version is this and what device?

marcelklehr avatar Jun 17 '22 14:06 marcelklehr

iPhone SE 2020 with iOS 15.5

On Fri, Jun 17, 2022 at 16:04, Marcel Klehr @.***> wrote:

Hello!

Which iOS version is this and what device?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

cmalvi avatar Jun 17 '22 15:06 cmalvi

Also on iPad 7th gen, same iOS version

On Fri, Jun 17, 2022 at 17:08, Malvicini Carlo @.***> wrote:

iPhone SE 2020 with iOS 15.5

On Fri, Jun 17, 2022 at 16:04, Marcel Klehr @.***> wrote:

Hello!

Which iOS version is this and what device?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

cmalvi avatar Jun 17 '22 15:06 cmalvi

Do you use 2 factor authentication?

marcelklehr avatar Jul 03 '22 11:07 marcelklehr

Yes, but I can't even use app's password because floccus doesn't accept the address

cmalvi avatar Jul 03 '22 12:07 cmalvi

So it stalls after the first button press directly after entering the URL?

Floccus tests the URL as follows: POST {nextcloudURL}/index.php/login/v2 can you try that with curl, perhaps?

marcelklehr avatar Jul 03 '22 12:07 marcelklehr

It rejects the url saying is wrong, so I can’t proceed to authentication

On Sun, Jul 3, 2022 at 14:16, Marcel Klehr @.***> wrote:

So it stalls after the first button press directly after entering the URL?

Floccus tests the URL as follows: POST {nextcloudURL}/index.php/login/v2 can you try that with curl, perhaps?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

cmalvi avatar Jul 03 '22 12:07 cmalvi

Result of curl:

“ Please enter content (application/x-www-form-encoded) to be POSTed”

and after wait for input

On Sun, Jul 3, 2022 at 14:16, Marcel Klehr @.***> wrote:

So it stalls after the first button press directly after entering the URL?

Floccus tests the URL as follows: POST {nextcloudURL}/index.php/login/v2 can you try that with curl, perhaps?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

cmalvi avatar Jul 03 '22 12:07 cmalvi

You can POST an empty message in curl

marcelklehr avatar Jul 03 '22 12:07 marcelklehr

It rejects the url saying is wrong

Do you mind sending me the URL in private, e.g. email (see my github profile) so I can check why it might be seen as invalid?

marcelklehr avatar Jul 03 '22 12:07 marcelklehr

You can POST an empty message in curl

Still it keep waiting for input even after input

cmalvi avatar Jul 03 '22 12:07 cmalvi

maybe ctrl+D

marcelklehr avatar Jul 03 '22 12:07 marcelklehr

It rejects the url saying is wrong

Do you mind sending me the URL in private, e.g. email (see my github profile) so I can check why it might be seen as invalid?

No sorry, it's my private instance.

It works with all the following OS/ software with no problem:

  • Gnome
  • Joplin
  • Floccus browser extension (Firefox)
  • macOS
  • Windows

And many others.

I made it to not share with anyone

cmalvi avatar Jul 03 '22 12:07 cmalvi

No sorry, it's my private instance.

ok, I understand.

Are you using a self-signed certificate?

marcelklehr avatar Jul 03 '22 12:07 marcelklehr

maybe ctrl+D

Here the result:

LWP will support https if the LWP::Protocol::https module is installed

So the app use a different method from other app and browser extension to handle https?

cmalvi avatar Jul 03 '22 12:07 cmalvi

No sorry, it's my private instance.

ok, I understand.

Are you using a self-signed certificate?

Yes.

The only software where I've had problem due to this is macOS which accept only certificates with specific criteria, even with self-signed With other software no specific problem about certificate

cmalvi avatar Jul 03 '22 12:07 cmalvi

LWP will support https if the LWP::Protocol::https module is installed So the app use a different method from other app and browser extension to handle https?

This is a message from your server, it has nothing to do with floccus.

So, either your https setup is broken, as curl cannot seem to connect either, or floccus cannot handle self-signed certificates on iOS (which I haven't tested yet, but is not unlikely, it also doesn't work on Android).

marcelklehr avatar Jul 03 '22 12:07 marcelklehr

I'm pretty sure is the second: Also Joplin for iOS has problem with self signed certificate due to how iOS handle them

cmalvi avatar Jul 03 '22 13:07 cmalvi

I'm closing this as 'won't fix' as self-signed certificates are an avoidable IMO and out of scope of floccus.

marcelklehr avatar May 21 '23 09:05 marcelklehr