X
Tap here to go to the mobile version of the site.

منتدى الدعم

Firefox sync incorrectly claims my own server URL is invalid.

Posted

I use my own server (implemented in PHP, run on Apache) to sync Firefox instances. The URL is https://diederickdevries.net/owncloud/remote.php/mozilla_sync/. Firefox Desktop (version 27.0.1 on Arch Linux) syncs without problem.

However, when I tap "Connect", Firefox on my Android device (version 27.0) asks me to enter a valid server URL, implying what I entered isn't correct. My Apache acces/error logs do not mention anything trying to access that URL at the moment my phone's Firefox states that it is "Verifying".

Is there a log on the phone that I could check? Is this a bug? How should I proceed?

Thanks for any help, Diederick de Vries

I use my own server (implemented in PHP, run on Apache) to sync Firefox instances. The URL is https://diederickdevries.net/owncloud/remote.php/mozilla_sync/. Firefox Desktop (version 27.0.1 on Arch Linux) syncs without problem. However, when I tap "Connect", Firefox on my Android device (version 27.0) asks me to enter a valid server URL, implying what I entered isn't correct. My Apache acces/error logs do not mention anything trying to access that URL at the moment my phone's Firefox states that it is "Verifying". Is there a log on the phone that I could check? Is this a bug? How should I proceed? Thanks for any help, Diederick de Vries

Additional System Details

Application

  • User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0

More Information

jscher2000
  • Top 10 Contributor
8758 solutions 71663 answers

I notice you have a self-signed SSL certificate. There is a bug on file indicating that this is a problem: 756763 – Android Sync can't accept self-signed certificates (or roots unknown to Android) for custom Sync servers on Android 2. There are a number of other bugs related to this error message, and I'm not sure which is the most relevant, actually.

I notice you have a self-signed SSL certificate. There is a bug on file indicating that this is a problem: [https://bugzilla.mozilla.org/show_bug.cgi?id=756763 756763 – Android Sync can't accept self-signed certificates (or roots unknown to Android) for custom Sync servers on Android 2]. There are a number of other bugs related to this error message, and I'm not sure which is the most relevant, actually.
kbrosnan
  • Moderator
584 solutions 3850 answers

You will need to import the self-signed certificate into the Android certificate store.

You will need to import the self-signed certificate into the Android certificate store.

Question owner

Hi, Thanks, but I'm unsure how to do that. I've copied the crt file from my apache installation to my phone, and when I tap on it in a file manager, the phone proposes to open it using an installation app for certificates. However, when I tap it, it tells me it cannot read the file. The log says:

[ 03-04 22:40:05.782 4815: 4815 E/CertInstaller ] Failed to read certificate: java.io.FileNotFoundException: /storage/emulated/0/.../server.crt: open failed: EACCES (Permission denied)

It has 0660 permissions, but I cannot chmod it to 0666: I don't have the rights.

How should I install the certificate?

Hi, Thanks, but I'm unsure how to do that. I've copied the crt file from my apache installation to my phone, and when I tap on it in a file manager, the phone proposes to open it using an installation app for certificates. However, when I tap it, it tells me it cannot read the file. The log says: [ 03-04 22:40:05.782 4815: 4815 E/CertInstaller ] Failed to read certificate: java.io.FileNotFoundException: /storage/emulated/0/.../server.crt: open failed: EACCES (Permission denied) It has 0660 permissions, but I cannot chmod it to 0666: I don't have the rights. How should I install the certificate?
kbrosnan
  • Moderator
584 solutions 3850 answers

I don't know. Never had the need to add a custom certificate to Android. https://encrypted.google.com/search?hl=en&q=Android%20add%20self%20signed%20certificate

I don't know. Never had the need to add a custom certificate to Android. https://encrypted.google.com/search?hl=en&q=Android%20add%20self%20signed%20certificate

Question owner

I imported the certificate using Settings -> Securiy -> Install from sdcard, but the phone's log still says:

[ 03-09 10:51:42.342 18284:19573 I/FxSync ] firefox :: EnsureUserExistence :: Error checking for user existence.

[ 03-09 10:51:42.342 18284:19573 W/FxSync ] firefox :: AccountAuthenticator :: Authentication failed. javax.net.ssl.SSLPeerUnverifiedException: No peer certificate

What certificate should I import then?

I imported the certificate using Settings -> Securiy -> Install from sdcard, but the phone's log still says: [ 03-09 10:51:42.342 18284:19573 I/FxSync ] firefox :: EnsureUserExistence :: Error checking for user existence. [ 03-09 10:51:42.342 18284:19573 W/FxSync ] firefox :: AccountAuthenticator :: Authentication failed. javax.net.ssl.SSLPeerUnverifiedException: No peer certificate What certificate should I import then?
kbrosnan
  • Moderator
584 solutions 3850 answers

I don't know the answer the #sync irc channel on irc.mozilla.org is where I would suggest asking your question.

irc://irc.mozilla.org/sync

I don't know the answer the #sync irc channel on irc.mozilla.org is where I would suggest asking your question. irc://irc.mozilla.org/sync