# Could not verify server key. The OpenPGP server key defined in the config could not be found in the GnuPG keyring

**URL:** https://community.passbolt.com/t/could-not-verify-server-key-the-openpgp-server-key-defined-in-the-config-could-not-be-found-in-the-gnupg-keyring/855
**Category:** Installation Issues
**Created:** [July 18, 2018, 1:24pm UTC](https://community.passbolt.com/t/could-not-verify-server-key-the-openpgp-server-key-defined-in-the-config-could-not-be-found-in-the-gnupg-keyring/855 "2018-07-18T13:24:36Z")
**Posts on this page:** 1
**Showing post:** 27

<div class="post-metadata">

### Author: ![mzanetti](https://avatars.discourse-cdn.com/v4/letter/m/b3f665/32.png) [@mzanetti](https://community.passbolt.com/u/mzanetti)
#### Post date: [July 23, 2018, 2:36pm UTC](https://community.passbolt.com/t/could-not-verify-server-key-the-openpgp-server-key-defined-in-the-config-could-not-be-found-in-the-gnupg-keyring/855/27 "2018-07-23T14:36:29Z")

</div>

Thank you Kevin.

I performed  
`rm -fr /var/www/.gnupg`  
and then  
`sudo su -s /bin/bash -c "gpg2 --import /var/www/passbolt_api/config/gpg/serverkey_private.asc" www-data`

now if I look at the keys I see

```
mzanetti@localhost:~$ sudo su -s /bin/bash -c "gpg2 --list-keys --fingerprint" www-data
/var/www/.gnupg/pubring.kbx
---------------------------
pub rsa2048/5335C8B5 2018-07-18 [SC]
      Key fingerprint = EB8D CF29 1ED1 E680 91E3 8F69 A6DA 4E2D 5335 C8B5
uid [unknown] company Testing (company Testing key) <company.testing@gmail.com>
sub rsa2048/F23A5957 2018-07-18 [E]

mzanetti@localhost:~$ sudo su -s /bin/bash -c "gpg2 --list-secret-keys --fingerprint" www-data
/var/www/.gnupg/pubring.kbx
---------------------------
sec rsa2048/5335C8B5 2018-07-18 [SC]
      Key fingerprint = EB8D CF29 1ED1 E680 91E3 8F69 A6DA 4E2D 5335 C8B5
uid [unknown] company Testing (company Testing key) <company.testing@gmail.com>
ssb rsa2048/F23A5957 2018-07-18 [E]

```

It looks all VERY fine to me. The keys are the same, I just have one issue…

![Selection_077](https://canada1.discourse-cdn.com/flex031/uploads/passbolt/original/1X/c4045219a4d2832033a58a41ca9fcedfc7185c93.png)

The error is always there!!! -.-

---

_[View the full topic](https://community.passbolt.com/t/could-not-verify-server-key-the-openpgp-server-key-defined-in-the-config-could-not-be-found-in-the-gnupg-keyring/855)._
