How to fix "Invalid private key for encryption app. Please update your private key password in your personal settings to recover access to your encrypted files"

You want to utilize the installed “Default encryption module” app in your Nextcloud installation. You have the encryption enabled in your users Nextcloud settings.

Every time you open a page in Nextcloud you are greeted with the message:

Invalid private key for encryption app. Please update your private key password in your personal settings to recover access to your encrypted files

To get rid of it:

  1. Log in as root to the machine where Nextcloud is installed.
  2. Open Nextcloud terminal:
univention-app shell nextcloud
  1. Check the status of Nextcloud encryption:
sudo -u www-data php /var/www/html/occ encryption:status
  1. If you see “enabled: false”, enable the encryption:
sudo -u www-data php /var/www/html/occ encryption:enable

  1. Verify that “enabled: true” has taken place:
sudo -u www-data php /var/www/html/occ encryption:status

Now you can exit the Nextcloud shell and refresh your Nextcloud browser session. You are free to enjoy your Nextcloud without the annoying greeting.

Mastodon