-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
OC 8.0: s2s does not recognise certificates from personal store (fix included) #14790
Comments
Hi, is this related to the already reported issue here: #14747 ? |
Hi, hmm, I don't think this is related. The stack trace in the mentioned issue references to dav.php, which does not use the certificate manager to determine the path to the store. See here. But it definitely relates to commit 67da1f7 . Toby |
I tried S2S sharing with a folder from an owncloud 7.02 Server to a 8.02 Server, imported the self-signed certificate and made your alteration, but it still doesn't work. Is there a way to fix this? |
@LukasReschke certs'n'stuff - thx |
My patch did not work completely, because some parts of the code relate on absolute, some on relative paths. As a temporary workaround until this commit gets into one of the next releases, open file lib/private/security/certificatemanager.php and in function getCertificateBundle replace This did it for me. |
Yep - there is a lot of broken stuff in SSL / TLS handling in all current ownCloud stable releases. This is not the only thing that is broken but one of the fews that can be detected most easily. This will be properly addressed with ownCloud 8.1 where I refactored everything HTTP related - see #15195 I doubt that backporting this only single specific patch will make much sense… There is really a lot broken as stated at #14913 (comment) and at other places. |
@LukasReschke - So no point reporting more SSL issues on 8.0? Fixes will never be backported? |
The problem appears in OC 8.0.0 as well as the current GitHub master.
Reproduce:
-> Nothing happens / you receive an "Unknown Error"
Problem:
The Certificate Manager returns the certificate store path relative to the data directory in getCertificateBundle(). (see: lib/private/security/certificatemanager.php, Lines: 137/141)
As a result, the sharing code feeds cURL with this relative path, which it obviously cannot find (see: apps/files_sharing/lib/external/storage.php Lines: 229/231).
Solution:
Make Certificate Manager return the absolute path to the store.
Change in file lib/private/security/certificatemanager.php, line 141 such that it reads:
Note:
Other parts of the OC code do avoid the certificate manager and construct the cert path store themselves. These work without issues.
The text was updated successfully, but these errors were encountered: