It may also be necessary to add 'overwriteprotocol' => 'https' to your config/config.php, see Forcing https on owncloud
'overwriteprotocol' => 'https'