pydio / pydio-sync

Python version of the Pydio synchronization client
https://pydio.com
GNU General Public License v3.0
82 stars 32 forks source link

Issue with self signed certificate #160

Closed deajan closed 7 years ago

deajan commented 7 years ago

Hello,

When connecting pydio-sync to my pydio 7.0.3 (works flawlessly in http), this is what I get when using https with a self signed certifcate (trust all SSL certificates checked), I get:

Server not found (404), is it up and has it Pydio installed ?

I can connect to https://mypydio.mydomain.tld without problems (except for the ssl warning of course).

httpd 2.4.18 used, tried to enable old SSL ciphers, without success.

Nothing reported in client's pydio.log. Anything I can check ?

Regards, Ozy.

7omate commented 7 years ago

On which platform is pydio-sync running ? (Windows, Mac, Linux?)

If you're using MacOS... https://pydio.com/forum/f/topic/pydiosync-for-mac-error-while-trying-to-connect-to-cannot-resolve-domain/

deajan commented 7 years ago

Running v1.2.9 on Win10 x64

7omate commented 7 years ago

Hi, did you read https://pydio.com/en/docs/v7/checking-sync and tried https://yourserver.tld/runTests.php?api=true (sample workspace slug: my-files)?

deajan commented 7 years ago

As told earlier, my setup works great without https so I doubt it's a setup error. For the sake of sanity I did try runTests.php and well, it works on http. On https, output is:

Getting authentication token with user credentials

Data returned is not JSON! There is something wrong with the API. Exiting.NULL

7omate commented 7 years ago

Thank you for your Cartesian doubt.

This looks like a configuration problem, make sure the rewrite rules are configured in the same way for HTTP and HTTPS.

deajan commented 7 years ago

Thank you for your Cartesian doubt.

Lol

Seems you're right. On my setup I've moved all the .htaccess stuff to main apache config file in order to avoid using AllowOverride All and exclude some attack surface. There was a missing rewrite in the https virtualhost part.

Thanks alot for the help, and sorry for the time waste.

7omate commented 7 years ago

Glad it's working :)