# \[solved\] Nitrokey Pro - RHEL / CentOS 7 - Key generation failed: Card error

**URL:** https://support.nitrokey.com/t/solved-nitrokey-pro-rhel-centos-7-key-generation-failed-card-error/1450
**Category:** Nitrokeys
**Created:** [November 16, 2018, 10:04pm UTC](https://support.nitrokey.com/t/solved-nitrokey-pro-rhel-centos-7-key-generation-failed-card-error/1450 "2018-11-16T22:04:04Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![szszszsz](https://support.nitrokey.com/letter_avatar_proxy/v4/letter/s/d07c76/32.png) [@szszszsz](https://support.nitrokey.com/u/szszszsz)
#### Post date: [November 19, 2018, 6:03pm UTC](https://support.nitrokey.com/t/solved-nitrokey-pro-rhel-centos-7-key-generation-failed-card-error/1450/9 "2018-11-19T18:03:28Z")

</div>

> [@Django](#):
>
> If it helps I can sent the stick to you or to your developers and you can test it by yourself on your system.

Hi!  
There are still a couple of options left. The issue reminds me of the Windows problem in OpenSC, where the key generation was timed out after 60 seconds. But not signing… While at the topic, your OpenSC is v0.16, while the latest one is v0.19. Maybe this one is not handling the OpenPGP v3.3? But that would not explain issues on Fedora 29.  
The second card you have inserted is OpenPGP v2.0, which is longer in the market.

1. What is your GnuPG version?
2. Please paste versions of the OpenSC and GnuPG installed on your Fedora 29.
3. Could you update the OpenSC?
4. Could you measure the time, after which generation operation fails? (e.g. with `time` command). Please do the same with signing.
5. Let’s gather some logs. Could you add to your `~/.gnupg/scdaemon.conf` file (if not existing, please create) following lines:

```auto
debug-all
debug-ccid-driver
log-file /home/sz/.gnupg/scdaemon-pro-4096.log

```

Please change the path in `log-file` parameter to your choosing and restart the `scdaemon`:

```auto
sudo killall scdaemon

```

Then please reproduce the issue one more time and attach the log here (via any pastebin service). Please make sure you are not using any secrets, or any other smartcards, as whole host\<-\>smartcard communication will be logged.

After that please disable the logging with removing or commenting the mentioned earlier lines in `scdaemon.conf`, and killing the `scdaemon`. It should load on next use without the logging feature. Please check then, will the log be updated to make sure logging is stopped.

I have Fedora 29 - will try to reproduce it tomorrow with my Pro 1 (edit: actually it is NK Pro v1 with OpenPGP v3.3). @nitroalex - could you do the same with Nitrokey Pro 2 on CentOS?

---

_[View the full topic](https://support.nitrokey.com/t/solved-nitrokey-pro-rhel-centos-7-key-generation-failed-card-error/1450)._
