# Invalid generation of pgp

**URL:** <https://community.passbolt.com/t/invalid-generation-of-pgp/8686>\
**Category:** Installation Issues\
**Created:** [October 20, 2023, 2:54am UTC](https://community.passbolt.com/t/invalid-generation-of-pgp/8686 "2023-10-20T02:54:40Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![zxx](https://avatars.discourse-cdn.com/v4/letter/z/ec9cab/32.png) [@zxx](https://community.passbolt.com/u/zxx)\
**Post date:** [October 20, 2023, 2:54am UTC](https://community.passbolt.com/t/invalid-generation-of-pgp/8686/1 "2023-10-20T02:54:40Z")

</div>

use aws ami ,  
The data entered are not correct: The OpenPGP public key should not be empty.; The OpenPGP private key should not be empty.; The fingerprint should not be empty.

`gpg --armor --export-secret-keys **@email` Generate PRIVATE KEY ,Paste into the browser, next returns the above error message

---

<div class="post-metadata">

**Author:** ![antony](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/antony/32/3130_2.png) [@antony](https://community.passbolt.com/u/antony)\
**Post date:** [October 20, 2023, 5:33am UTC](https://community.passbolt.com/t/invalid-generation-of-pgp/8686/2 "2023-10-20T05:33:36Z")

</div>

Hello @zxx,

Please, fill this template:

I have read intro post: [About the Installation Issues category](https://community.passbolt.com/t/about-the-installation-issues-category/12)  
 I have read the tutorials, help and searched for similar issues  
 I provide relevant information about my server (component names and versions, etc.)  
 I provide a copy of my logs and healthcheck  
 I describe the steps I have taken to trouble shoot the problem  
 I describe the steps on how to reproduce the issue

Can you explain a bit more precisely, is it the first time you are trying to log in into passbolt, was it working before? How can we reproduce this scenario?

Also, could you gives us the datacheck output

```auto
sudo su -s /bin/bash -c "/usr/share/php/passbolt/bin/cake passbolt datacheck --hide-success-details" www-data

```

---

<div class="post-metadata">

**Author:** ![antony](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/antony/32/3130_2.png) [@antony](https://community.passbolt.com/u/antony)\
**Post date:** [October 20, 2023, 5:48am UTC](https://community.passbolt.com/t/invalid-generation-of-pgp/8686/4 "2023-10-20T05:48:41Z")

</div>

For security purposes I have deleted your post, please do not share your private key.

Sometimes, there is an issue due to spaces after `--- BEGIN PGP PRIVATE KEY BLOCK ---` can you try to remove that empty space?

---

<div class="post-metadata">

**Author:** ![zxx](https://avatars.discourse-cdn.com/v4/letter/z/ec9cab/32.png) [@zxx](https://community.passbolt.com/u/zxx)\
**Post date:** [October 20, 2023, 5:52am UTC](https://community.passbolt.com/t/invalid-generation-of-pgp/8686/5 "2023-10-20T05:52:39Z")

</div>

Please, fill this template:

> [@zxx](#):
>
> use aws ami ,  
> The data entered are not correct: The OpenPGP public key should not be empty.; The OpenPGP private key should not be empty.; The fingerprint should not be empty.
> 
> `gpg --armor --export-secret-keys **@email` Generate PRIVATE KEY ,Paste into the browser, next returns the above error message

I have read intro post: [About the Installation Issues category](https://community.passbolt.com/t/about-the-installation-issues-category/12)  
I have read the tutorials, help and searched for similar issues  
I provide relevant information about my server (component names and versions, etc.)  
I provide a copy of my logs and healthcheck  
I describe the steps I have taken to trouble shoot the problem  
I describe the steps on how to reproduce the issue

Removing spaces is also invalid

---

<div class="post-metadata">

**Author:** ![antony](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/antony/32/3130_2.png) [@antony](https://community.passbolt.com/u/antony)\
**Post date:** [October 20, 2023, 5:53am UTC](https://community.passbolt.com/t/invalid-generation-of-pgp/8686/6 "2023-10-20T05:53:55Z")

</div>

Does this issue is happening also if you are trying to create a gpg key from the webInstaller or is it only related to the key you are trying to import?

---

<div class="post-metadata">

**Author:** ![zxx](https://avatars.discourse-cdn.com/v4/letter/z/ec9cab/32.png) [@zxx](https://community.passbolt.com/u/zxx)\
**Post date:** [October 20, 2023, 5:58am UTC](https://community.passbolt.com/t/invalid-generation-of-pgp/8686/7 "2023-10-20T05:58:56Z")

</div>

I refer to [Passbolt Help | Using Passbolt CE AWS AMI](https://help.passbolt.com/hosting/install/ce/aws.html)

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

use `gpg --armor --export-secret-keys email@domain.tld ` output content Paste to web page

---

<div class="post-metadata">

**Author:** ![zxx](https://avatars.discourse-cdn.com/v4/letter/z/ec9cab/32.png) [@zxx](https://community.passbolt.com/u/zxx)\
**Post date:** [October 20, 2023, 6:04am UTC](https://community.passbolt.com/t/invalid-generation-of-pgp/8686/8 "2023-10-20T06:04:11Z")

</div>

> [@antony](#):
>
> Does this issue is happening also if you are trying to create a gpg key from the webInstaller or is it only related to the key you are trying to import?

Do you support importing in. txt format

---

<div class="post-metadata">

**Author:** ![zxx](https://avatars.discourse-cdn.com/v4/letter/z/ec9cab/32.png) [@zxx](https://community.passbolt.com/u/zxx)\
**Post date:** [October 20, 2023, 6:10am UTC](https://community.passbolt.com/t/invalid-generation-of-pgp/8686/9 "2023-10-20T06:10:36Z")

</div>

`gpg --armor --export-secret-keys MY-email@xxx > 123.txt`  
Error selecting file for import

---

<div class="post-metadata">

**Author:** ![antony](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/antony/32/3130_2.png) [@antony](https://community.passbolt.com/u/antony)\
**Post date:** [October 20, 2023, 6:26am UTC](https://community.passbolt.com/t/invalid-generation-of-pgp/8686/10 "2023-10-20T06:26:04Z")

</div>

Yes, `.txt` should work, I have reproduced the installation and the creation/import process (copy/paste + import `.txt`) of the gpg and I am not able to get the same error.

It could be related to a time synchronization issue, can you ensure that NTP is active and running as shown [here](https://help.passbolt.com/faq/hosting/set-up-ntp#debian)

---

<div class="post-metadata">

**Author:** ![zxx](https://avatars.discourse-cdn.com/v4/letter/z/ec9cab/32.png) [@zxx](https://community.passbolt.com/u/zxx)\
**Post date:** [October 20, 2023, 6:44am UTC](https://community.passbolt.com/t/invalid-generation-of-pgp/8686/12 "2023-10-20T06:44:36Z")

</div>

```auto
root@ip-172-16-0-159:~# timedatectl status
               Local time: Fri 2023-10-20 06:44:21 UTC
           Universal time: Fri 2023-10-20 06:44:21 UTC
                 RTC time: Fri 2023-10-20 06:44:21
                Time zone: Etc/UTC (UTC, +0000)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

```

---

<div class="post-metadata">

**Author:** ![zxx](https://avatars.discourse-cdn.com/v4/letter/z/ec9cab/32.png) [@zxx](https://community.passbolt.com/u/zxx)\
**Post date:** [October 20, 2023, 7:03am UTC](https://community.passbolt.com/t/invalid-generation-of-pgp/8686/13 "2023-10-20T07:03:37Z")

</div>

Are there any other import methods?

---

<div class="post-metadata">

**Author:** ![zxx](https://avatars.discourse-cdn.com/v4/letter/z/ec9cab/32.png) [@zxx](https://community.passbolt.com/u/zxx)\
**Post date:** [October 23, 2023, 8:21am UTC](https://community.passbolt.com/t/invalid-generation-of-pgp/8686/14 "2023-10-23T08:21:43Z")

</div>

AWS AMI deployment, forwarding intranet domain names through Ingress, passbolt not configured with 443, front-end checks are all HTTP requests, and configuring SSL certificates on the passbolt server to solve the problem
