Refactering related owncloud with ssl