Owncloud client side ssl code