# Nitrokey Pro installation under RHEL7/CentOS7

**URL:** https://support.nitrokey.com/t/nitrokey-pro-installation-under-rhel7-centos7/194
**Category:** Nitrokeys
**Created:** [May 24, 2016, 12:17pm UTC](https://support.nitrokey.com/t/nitrokey-pro-installation-under-rhel7-centos7/194 "2016-05-24T12:17:25Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![jwildeboer](https://support.nitrokey.com/user_avatar/support.nitrokey.com/jwildeboer/32/72_2.png) [@jwildeboer](https://support.nitrokey.com/u/jwildeboer)
#### Post date: [May 24, 2016, 12:17pm UTC](https://support.nitrokey.com/t/nitrokey-pro-installation-under-rhel7-centos7/194/1 "2016-05-24T12:17:25Z")

</div>

Hi all,

Here’s my TL;DR version of how to get the Nitrokey Pro working under RHEL7/CentOS 7.

1. Install gnupg2-smime, pscs-lite, pcsc-lite-ccid and libqtxdg-qt5

```auto
sudo yum install gnupg2-smime pscs-lite pcsc-lite-ccid libqtxdg-qt5
```

1. edit /lib64/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist and add the lines as described at [nitrokey.com/documentation/ … o&os:linux](https://www.nitrokey.com/documentation/installation#p:nitrokey-pro&os:linux)

2. Download the nitrokey-app RPM and (unfortunately) force-install it

```auto
sudo rpm -ivh --force nitrokey-app-0.2-Linux.rpm
```

1. Either reload udev rules or restart machine.

```auto
sudo udevadm control --reload
```

1. Start the Nitrokey App either from the command line or (I use GNOME3) from the Accessories menu

Done. Your Nitrokey Pro should now show up and the app should be able to configure it.

NOTE: When you do

```auto
sudo gpg --card-status
```

you might get a “Card not present” error message the first time. Just repeat the command again and all should be fine.

GNOME users (like me): open gnome-session.properties and disable gpg-agent and ssh-agent. This change will allow you user access to the card with gpg. So no sudo needed.

Now to use your Nitrokey for ssh logins on remote machines, use these steps:

1. Create ~/.gnupg/gpg-agent.conf and add the following line to it:

```auto
enable-ssh-support
```

1. Create or edit your ~/.bashrc and add these lines:

`envfile="$HOME/.gnupg/gpg-agent.env"
if -e "$envfile" ]] && kill -0 $(grep SSH_AGENT_PID "$envfile" | cut -d= -f 2) 2>/dev/null; then
    eval "$(cat "$envfile")"
else
    eval "$(gpg-agent --daemon --write-env-file "$envfile")"
fi
export SSH_AUTH_SOCK
`

1. Open a new terminal (or logout and login to your session) and check with

```auto
$ ssh-add -l
```

that your card is recognized and the public key is available. With

```auto
$ ssh-add -L
```

you get the public key that you can add to the .ssh/authorized\_keys file on your target machines.

Hope this helps.

Disclaimer: I work at Red Hat and will now try to get the ccid rules in our repos and will look for someone to help me get the nitrokey app in either EPEL or or other RPM repos.

Jan Wildeboer

---

<div class="post-metadata">

### Author: ![jan](https://support.nitrokey.com/letter_avatar_proxy/v4/letter/j/ce7236/32.png) [@jan](https://support.nitrokey.com/u/jan)
#### Post date: [June 3, 2016, 4:04pm UTC](https://support.nitrokey.com/t/nitrokey-pro-installation-under-rhel7-centos7/194/2 "2016-06-03T16:04:57Z")

</div>

Great explanation. Thanks.

---

<div class="post-metadata">

### Author: ![anon10219228](https://support.nitrokey.com/letter_avatar_proxy/v4/letter/a/bc8723/32.png) [@anon10219228](https://support.nitrokey.com/u/anon10219228)
#### Post date: [February 7, 2017, 8:25pm UTC](https://support.nitrokey.com/t/nitrokey-pro-installation-under-rhel7-centos7/194/3 "2017-02-07T20:25:40Z")

</div>

not work for me:

Fehler: Fehlgeschlagende Abhängigkeiten:  
libappindicator.so.1()(64bit) wird benötigt von nitrokey-app-0.6.1-1.x86\_64  
libstdc++.so.6(CXXABI\_1.3.9)(64bit) wird benötigt von nitrokey-app-0.6.1-1.x86\_64  
libstdc++.so.6(GLIBCXX\_3.4.21)(64bit) wird benötigt von nitrokey-app-0.6.1-1.x86\_64

thank you for help

centos7

---

<div class="post-metadata">

### Author: ![Tom](https://support.nitrokey.com/letter_avatar_proxy/v4/letter/t/3d9bf3/32.png) [@Tom](https://support.nitrokey.com/u/Tom)
#### Post date: [February 20, 2017, 8:44am UTC](https://support.nitrokey.com/t/nitrokey-pro-installation-under-rhel7-centos7/194/4 "2017-02-20T08:44:31Z")

</div>

Having the same problem! But according to package manager, libstdc++.so.6 is installed…

---

<div class="post-metadata">

### Author: ![anon10219228](https://support.nitrokey.com/letter_avatar_proxy/v4/letter/a/bc8723/32.png) [@anon10219228](https://support.nitrokey.com/u/anon10219228)
#### Post date: [March 23, 2017, 8:13am UTC](https://support.nitrokey.com/t/nitrokey-pro-installation-under-rhel7-centos7/194/5 "2017-03-23T08:13:09Z")

</div>

Can anyone help ? Centos 7 User cannot use the NitroKeyApp (and old Downloadversion?)

---

<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: [March 23, 2017, 8:41am UTC](https://support.nitrokey.com/t/nitrokey-pro-installation-under-rhel7-centos7/194/6 "2017-03-23T08:41:06Z")

</div>

Hi!  
Sorry for late reply.

I have not used Centos earlier but I will try to help anyway. Do I understand correctly, that older versions of Nitrokey App are working (v0.2-v0.5)?

As for error message, I guess updating the C++ compiler (possibly installing GCC 5.0+) should help. Also installing a package with libappindicator will be needed.

---

<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: [March 23, 2017, 12:41pm UTC](https://support.nitrokey.com/t/nitrokey-pro-installation-under-rhel7-centos7/194/7 "2017-03-23T12:41:47Z")

</div>

I have checked EPEL repository and downloaded libappindicator there, but I still have not found any way to update glibc libraries or compiler. I see Fedora has all updates (it has even GCC 7.0, while we need 5.0), so it should be here too.  
I am afraid you will have to ask on some CentOS forum how to deal with this issue - that is updating these libraries.

---

<div class="post-metadata">

### Author: ![nitroalex](https://support.nitrokey.com/user_avatar/support.nitrokey.com/nitroalex/32/133_2.png) [@nitroalex](https://support.nitrokey.com/u/nitroalex)
#### Post date: [October 30, 2017, 10:29am UTC](https://support.nitrokey.com/t/nitrokey-pro-installation-under-rhel7-centos7/194/8 "2017-10-30T10:29:18Z")

</div>

Hello,

for anyone landing here: there is a repo by Igor Gnatenko which can be used for installing the Nitrokey App on RedHat and CentOS ([https://www.nitrokey.com/download/redhat](https://www.nitrokey.com/download/redhat)). This should solve the issues above.

Kind regards  
Alex
