Nextcloud VM - certificate folder no permission for www-data

Hello gents,

I just installed the Nextcloud VM and everything is working fine.

I tried to change the defaut selfsigned certificate and when I browse with Winscp the folder /etc/ssl/private I receive the error permission denied although I’m connected in ncadmin.

I know that a lot of folders belong to www-data but how could I upload / download my files to these folders ? I tried in console the sudo -i, it works for the console but I want to have Winscp.

Is it different by using a full Ubuntu installed manually ? I would prefer to keep the use of the VM.

Thanks for your lights because I’m lost on this.