I just upgrade our company server from Passbolt v1 to v2, and I’m having issues recovery accounts and logging in.
I do the normal account recovery and I try to import my private key, but I keep getting this error message:
This key doesn't match any account.
When I look at the /logs/error.log log, it keeps coming up with the following error message:
2018-07-24 19:38:36 Error: [Cake\Network\Exception\InternalErrorException] The OpenPGP server key defined in the config could not be found in the GnuPG keyring. Request URL: /auth/verify.json?api-version=v1
When I run the Healthcheck command to see if there are any error messages, it shows that everything passes besides the Debug mode being on:
I also checked the GnuPG keyring just to be sure that the keys have been imported.
Here is the result of that:
[admin@server passbolt]$ sudo -su nginx gpg --list-keys --fingerprint /var/cache/nginx/.gnupg/pubring.gpg ----------------------------------- pub 4096R/CC5D8AB2 2017-07-03 [expires: 2023-07-23] Key fingerprint = 6432 53B8 D6C9 E8FE F9B0 CC67 4214 9EF0 CC5D 8AB2 uid Company, Inc. <email@example.com> sub 4096R/CBFCE064 2017-07-03 [expires: 2023-07-23]
Also the Key fingerprint has been added to the config/passbolt.php file.
// Main server key. 'serverKey' => [ // Server private key fingerprint. 'fingerprint' => '643253B8D6C9E8FEF9B0CC6742149EF0CC5D8AB2', 'public' => CONFIG . DS . 'gpg' . DS . 'serverkey.asc', 'private' => CONFIG . DS . 'gpg' . DS . 'serverkey_private.asc',
I have removed/imported the keying multiple times, deleted the ‘/var/cache/nginx/.gnupg’ directory as well, and I have also generated a new keys multiple times, but I keep getting the same error message, which is:
The OpenPGP server key defined in the config could not be found in the GnuPG keyring.
Not sure what else there is to check.
Your help would be appreciated.