# GPG-Key creation failed

**URL:** https://community.passbolt.com/t/gpg-key-creation-failed/5313
**Category:** Installation Issues
**Created:** [May 4, 2022, 12:36pm UTC](https://community.passbolt.com/t/gpg-key-creation-failed/5313 "2022-05-04T12:36:20Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Chris](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/chris/32/1272_2.png) [@Chris](https://community.passbolt.com/u/Chris)
#### Post date: [May 4, 2022, 12:36pm UTC](https://community.passbolt.com/t/gpg-key-creation-failed/5313/1 "2022-05-04T12:36:20Z")

</div>

I’m really sorry - it’s me again 😃  
Currently i stuck at generation a gpg key  
The error-message is:  
The data entered are not correct: The OpenPGP public key cannot be used to encrypt.; The OpenPGP private key cannot be used to decrypt. Please note that passbolt does not support OpenPGP key protected with a secret.  
Advances Settings are grey:  
RSA and DSA with 2048 bit key.  
Thanks again!

---

<div class="post-metadata">

### Author: ![AnatomicJC](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/anatomicjc/32/962_2.png) [@AnatomicJC](https://community.passbolt.com/u/AnatomicJC)
#### Post date: [May 4, 2022, 12:44pm UTC](https://community.passbolt.com/t/gpg-key-creation-failed/5313/2 "2022-05-04T12:44:42Z")

</div>

Hi,

I guess you are stuck at the 2.3 step of the installation page: [Passbolt Help | Using Passbolt pro virtual machine appliance](https://help.passbolt.com/hosting/install/pro/vm.html#gpg-key)

You can let the passbolt wizard create a key for you by filling a Server name and an email:

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/passbolt/original/2X/9/9e43afb12c6193b9dc723a82f930821df004dde4.jpeg)

Generate yourself a GPG key is not mandatory. But if you still want create one, don’t set any expiration date or passphrase, as written in the doc:

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/passbolt/original/2X/f/f3175e3583686cc1dfb53bbb8679e3836991c0af.png)

Finally, you will find after the warning blog a code snippet to generate a gpg key without expiration date or passphrase.

Cheers,

---

<div class="post-metadata">

### Author: ![Chris](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/chris/32/1272_2.png) [@Chris](https://community.passbolt.com/u/Chris)
#### Post date: [May 4, 2022, 12:48pm UTC](https://community.passbolt.com/t/gpg-key-creation-failed/5313/3 "2022-05-04T12:48:03Z")

</div>

> [@AnatomicJC](#):
>
> You can let the passbolt wizard create a key for you by filling a Server name and an email:

This is what I wanted to do… then I got this error message.

---

<div class="post-metadata">

### Author: ![AnatomicJC](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/anatomicjc/32/962_2.png) [@AnatomicJC](https://community.passbolt.com/u/AnatomicJC)
#### Post date: [May 4, 2022, 1:42pm UTC](https://community.passbolt.com/t/gpg-key-creation-failed/5313/4 "2022-05-04T13:42:58Z")

</div>

As Chris is on evaluating Passbolt PRO, we made a quick call and the issue was date and time.

For those who will read this topic, you must ensure your server is synchronized with a NTP server, as written in the prerequisites:

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/passbolt/original/2X/9/996a0b00aa0bd9ca298710a8720229fb5bcb7b3a.png)

In modern Linux distros, NTP is handled by systemd-timesyncd service and in service output, there was network timeouts while reaching NTP servers.

That’s why we also have this [firewall FAQ page](https://help.passbolt.com/faq/hosting/firewall-rules), with the list of needed ports to be opened.

---

<div class="post-metadata">

### Author: ![Chris](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/chris/32/1272_2.png) [@Chris](https://community.passbolt.com/u/Chris)
#### Post date: [May 4, 2022, 1:54pm UTC](https://community.passbolt.com/t/gpg-key-creation-failed/5313/5 "2022-05-04T13:54:22Z")

</div>

Thanks for the call jc

---

<div class="post-metadata">

### Author: ![digim-s15](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/digim-s15/32/3042_2.png) [@digim-s15](https://community.passbolt.com/u/digim-s15)
#### Post date: [August 18, 2023, 2:51pm UTC](https://community.passbolt.com/t/gpg-key-creation-failed/5313/6 "2023-08-18T14:51:37Z")

</div>

in my case it was not time. something strange is goin on this installation step. refreshing page(F5) helps me btw.

---

<div class="post-metadata">

### Author: ![bjadowi](https://avatars.discourse-cdn.com/v4/letter/b/ecccb3/32.png) [@bjadowi](https://community.passbolt.com/u/bjadowi)
#### Post date: [July 3, 2024, 5:45am UTC](https://community.passbolt.com/t/gpg-key-creation-failed/5313/7 "2024-07-03T05:45:55Z")

</div>

Hi, same problem here.  
Server is synced by ntp, but my PGP screen looks different:

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/passbolt/original/2X/e/ee3bf8d319fb9fadc911168cb4293d28000592ea.png)

---

<div class="post-metadata">

### Author: ![bjadowi](https://avatars.discourse-cdn.com/v4/letter/b/ecccb3/32.png) [@bjadowi](https://community.passbolt.com/u/bjadowi)
#### Post date: [July 3, 2024, 6:43am UTC](https://community.passbolt.com/t/gpg-key-creation-failed/5313/8 "2024-07-03T06:43:19Z")

</div>

This did the trick:  
gpg --full-generate-key

---

<div class="post-metadata">

### Author: ![AnatomicJC](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/anatomicjc/32/962_2.png) [@AnatomicJC](https://community.passbolt.com/u/AnatomicJC)
#### Post date: [July 3, 2024, 8:05pm UTC](https://community.passbolt.com/t/gpg-key-creation-failed/5313/9 "2024-07-03T20:05:47Z")

</div>

Just in case, I wrote a memo on my personal blog about how to create gpg keys for passbolt: [GPG Memo for passbolt | Linux and DevOps Stuff !](https://jcvassort.open-web.fr/gpg-memo-passbolt/)
