ownCloud - Enabling Encryption

Status
Not open for further replies.

wtigotw

Cadet
Joined
Jun 23, 2012
Messages
8
***SOLVED*** see closing message in this thread

Hi,

I'm very impressed with the ownCloud plugin so far... it's a very slick package!

However, I'm trying to use the web GUI to enable the ownCloud internal app for encryption. I can do so, but when logging back in (as requested) I get the following message:

Please make sure that PHP 5.3.3 or newer is installed and that OpenSSL together with the PHP extension is enabled and configured properly. For now, the encryption app has been disabled.

I assume this means that some sort of port is missing or misconfigured, but I'm not yet able to determine which one or how. I've installed /lang/php5, /security/openssl, and /security/php5-openssl but all to no avail.

Any ideas?
 
D

dlavigne

Guest
That's not very helpful :smile: Can you do a bit of research to find out what the name of that encryption app is? It may turn out to be something that is operating system specific.
 

wtigotw

Cadet
Joined
Jun 23, 2012
Messages
8
That's not very helpful :) Can you do a bit of research to find out what the name of that encryption app is? It may turn out to be something that is operating system specific.

ownCloud's documentation seems to be a work in progress. From what I can see on the web, it seems to be using OpenSSL to carry out the encryption. (http://blog.schiessle.org/2013/05/28/introduction-to-the-new-owncloud-encryption-app/)

There seems to be a few people that complain about this same error message, but most of the forum articles I find point to Windows users that have not configured or installed OpenSSL correctly or have not set up PHP to recognize it. (https://forum.owncloud.org/viewtopic.php?f=23&t=16060, http://forum.owncloud.org/viewtopic.php?t=15654&p=41673)

There have been one or two tidbits that hint that ownCloud is looking for OpenSSL, or at least a configuration file for OpenSSL to be in a certain place. I haven't had a chance to try to find out if this is the case in this instance, but I'm not even sure where ownCloud would be looking in the case of this plugin (http://www.synology-forum.de/showthread.html?43962-Synology-Owncloud-Encryption-Missing-requirements).

I'm afraid I'm just learning the ropes for freebsd, jails, and pbis/ports as I go so there's probably more I could contribute to help hunt down the problem but I just don't know where to look.
 

wtigotw

Cadet
Joined
Jun 23, 2012
Messages
8
Well, I seem to have solved it... I don't know if this entire combination was necessary, but here is what I did:
1. In the jail, install ports for: /lang/php5, /security/openssl, /security/php5-openssl
2. Execute "cp /usr/local/lib/php/20100525/openssl.so /usr/pbi/owncloud-amd64/lib/php/20100525/"
3. Edit the file "/usr/pbi/owncloud-amd64/etc/php/extensions.ini" to include this line: "extension=openssl.so"
4. Stop and restart the plugin from the freenas UI, then log into the ownCloud GUI and enable the encryption app. Log out, log in, and all is well.

I had tried and failed a few other things that did not help over a day or two, but I'm fairly certain none of them were relevant. If you need anything further to figure out how to massage the PBI so that all of this is set up automatically, feel free to get in touch :D
 
D

dlavigne

Guest
Please create a feature enhancement at bugs.freenas.org with the instructions for the additions to the PBI so that this functionality can be bundled in. Post the issue number here.
 

zfrank

Cadet
Joined
Sep 13, 2013
Messages
6
Ok, ldap is also working now.
first install pkg_add -r php5-ldap
then create an php.ini ( at the moment no php.ini exist in plugin!) , copy ldap.so in lib-directory, add extension=ldap.so in extensions
after this restart httpd and all is ok
 
Status
Not open for further replies.
Top