Hello,
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:
[admin@server passbolt]$ sudo -u nginx ./bin/cake passbolt healthcheck
____ __ ____
/ __ \____ _____ ____/ /_ ____ / / /_
/ /_/ / __ `/ ___/ ___/ __ \/ __ \/ / __/
/ ____/ /_/ (__ |__ ) /_/ / /_/ / / /
/_/ \__,_/____/____/_.___/\____/_/\__/
Open source password manager for teams
---------------------------------------------------------------
Healthcheck shell
---------------------------------------------------------------
Environment
[PASS] PHP version 7.0.30.
[PASS] PCRE compiled with unicode support.
[PASS] The temporary directory and its content are writable.
[PASS] The public image directory and its content are writable.
[PASS] The logs directory and its content are writable.
[PASS] GD or Imagick extension is installed.
[PASS] Intl extension is installed.
[PASS] Mbstring extension is installed.
Config files
[PASS] The application config file is present
[PASS] The passbolt config file is present
Core config
[FAIL] Debug mode is on.
[HELP] Set debug = false; in config/passbolt.php
[PASS] Cache is working.
[PASS] Unique value set for security.salt
[PASS] Full base url is set to https://passbolt.mawcom.com
[PASS] App.fullBaseUrl validation OK.
[PASS] /healthcheck/status is reachable.
SSL Certificate
[PASS] SSL peer certificate validates
[PASS] Hostname is matching in SSL certificate.
[PASS] Not using a self-signed certificate
Database
[PASS] The application is able to connect to the database
[PASS] 19 tables found
[PASS] Some default content is present
[PASS] The database schema up to date.
GPG Configuration
[PASS] PHP GPG Module is installed and loaded.
[PASS] The server gpg key is not the default one
[PASS] The environment variable GNUPGHOME is set to /var/cache/nginx/.gnupg.
[PASS] The directory /var/cache/nginx/.gnupg containing the keyring is writable by the webserver user.
[PASS] The public key file is defined in config/passbolt.php and readable.
[PASS] The private key file is defined in config/passbolt.php and readable.
[PASS] The server key fingerprint matches the one defined in config/passbolt.php.
[PASS] The server public key defined in the config/passbolt.php is in the keyring.
[PASS] There is a valid email id defined for the server key.
[PASS] The public key can be used to encrypt a message.
[PASS] The private key can be used to sign a message.
[PASS] The public and private keys can be used to encrypt and sign a message.
[PASS] The private key can be used to decrypt a message.
[PASS] The private key can be used to decrypt and verify a message.
[PASS] The public key can be used to verify a signature.
Application configuration
[PASS] Using latest passbolt version (2.1.0).
[PASS] Passbolt is configured to force SSL use.
[PASS] App.fullBaseUrl is set to HTTPS.
[PASS] Selenium API endpoints are disabled.
[PASS] Search engine robots are told not to index content.
[PASS] Registration is closed, only administrators can add users.
[PASS] Serving the compiled version of the javascript app
[PASS] All email notifications will be sent.
1 error(s) found. Hang in there!
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. <passbolt@company.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.
Thanks