# PKCS11 not working on mender client with TPM

**URL:** <https://hub.mender.io/t/pkcs11-not-working-on-mender-client-with-tpm/4541>\
**Category:** General Discussions\
**Created:** [January 26, 2022, 5:25pm UTC](https://hub.mender.io/t/pkcs11-not-working-on-mender-client-with-tpm/4541 "2022-01-26T17:25:11Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![sandevins](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/sandevins/32/1439_2.png) [@sandevins](https://hub.mender.io/u/sandevins)\
**Post date:** [November 27, 2023, 3:29pm UTC](https://hub.mender.io/t/pkcs11-not-working-on-mender-client-with-tpm/4541/4 "2023-11-27T15:29:38Z")

</div>

Hi @oleorhagen,

Yes, the problem is related to the environment variable OPENSSL\_CONF when the process is launched by systemd.

You have to add a line in the `/usr/lib/systemd/system/mender-client.service` file under the [Service] section with the following content.

```auto
Environment="OPENSSL_CONF=<PATH_TO_OPENSSL_CONF"

```

I hope this helps.

---

_[View the full topic](https://hub.mender.io/t/pkcs11-not-working-on-mender-client-with-tpm/4541)._
