# Openssl command not found

**URL:** <https://hub.mender.io/t/openssl-command-not-found/1603>\
**Category:** General Discussions\
**Created:** [March 4, 2020, 5:26pm UTC](https://hub.mender.io/t/openssl-command-not-found/1603 "2020-03-04T17:26:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Austriker](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/austriker/32/511_2.png) [@Austriker](https://hub.mender.io/u/Austriker)\
**Post date:** [March 4, 2020, 5:26pm UTC](https://hub.mender.io/t/openssl-command-not-found/1603/1 "2020-03-04T17:26:08Z")

</div>

Hi,

Branch: Warrior  
Mender: 2.2.%

I am following the tutorial for integrating mender with google cloud [Mender OTA GCP Tutorial](https://cloud.google.com/community/tutorials/cloud-iot-mender-ota). There is a recipe that modifies the process for generating the certificates which is a follow :  
#!/bin/sh

```
if [! -e /var/lib/mender/mender-agent.pem]; then
# Normally Mender will create the private key on startup if it doesn't exist.
# This script is used to manually create the key outside of the Mender client.
#
# This is invoked by systemd as an ExecStartPre step for Mender.
#
# This is to allow proper sequencing of initialization steps with the Google
# Cloud integration as both Mender and GCP are sharing the same key. We have
# a state script to disallow Mender server connections until the GCP setup
# for preauthorization has completed. If we allow the normal client initialization
# to generate the certificate, then it will be too late for GCP.
#
cd /tmp
/usr/sbin/mender-keygen-client > /dev/null
mv keys-client-generated/private.key /var/lib/mender/mender-agent.pem
openssl rsa -in /var/lib/mender/mender-agent.pem -pubout -out /var/lib/mender/rsa_public.pem
chmod 600 /var/lib/mender/mender-agent.pem /var/lib/mender/rsa_public.pem
rm -rf keys-client-generated/
fi

```

But it fails to work because Openssl utility command is missing which is strange since the recipe RDEPENDS on it and I have also added it to the image depency like this :

```
IMAGE_INSTALL_append = "\
	openssl \
	mender-gcp-delay-server-connection \
    mender-google-activation-agent \
"

```

What I am missing ? Doesn’t the mender client require also openssl to generate the key ?

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [March 4, 2020, 6:44pm UTC](https://hub.mender.io/t/openssl-command-not-found/1603/2 "2020-03-04T18:44:55Z")

</div>

Hi @Austriker, I think you need to use openssl-bin to get the actual openssl executable.  
Drew

---

<div class="post-metadata">

**Author:** ![Austriker](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/austriker/32/511_2.png) [@Austriker](https://hub.mender.io/u/Austriker)\
**Post date:** [March 5, 2020, 8:48am UTC](https://hub.mender.io/t/openssl-command-not-found/1603/3 "2020-03-05T08:48:20Z")

</div>

Thanks it was the solution.
