# Icloud binding - General SSLEngine problem

**URL:** <https://community.openhab.org/t/icloud-binding-general-sslengine-problem/48314>\
**Category:** Bindings\
**Created:** [July 24, 2018, 6:09pm UTC](https://community.openhab.org/t/icloud-binding-general-sslengine-problem/48314 "2018-07-24T18:09:28Z")\
**Posts on this page:** 1\
**Showing post:** 27

<div class="post-metadata">

**Author:** ![The-Elk](https://community.openhab.org/letter_avatar_proxy/v4/letter/t/e19adc/32.png) [@The-Elk](https://community.openhab.org/u/The-Elk)\
**Post date:** [July 27, 2018, 8:19am UTC](https://community.openhab.org/t/icloud-binding-general-sslengine-problem/48314/27 "2018-07-27T08:19:13Z")

</div>

MANY THX, this DIR I also found, but I was not sure.

What I do step by step **“for openhabian Users”:**

**connect via SSH to openhabian**

```auto
echo -n | openssl s_client -servername fmipmobile.icloud.com -host fmipmobile.icloud.com -port 443 -prexit -showcerts 2>/dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /tmp/icloud2.crt

```

```auto
cd /tmp

```

```auto
csplit -f cert /tmp/icloud2.crt '/^-----BEGIN CERTIFICATE-----/' {*}

```

```auto
sudo su

```

```auto
cd /usr/lib/jvm/zulu-embedded-8-armhf

```

```auto
bin/keytool -importcert -file /tmp/cert01 -alias icloudfmi1 -trustcacerts -keystore ./jre/lib/security/cacerts -storepass changeit

```

Trust the certificates with **y**

```auto
bin/keytool -importcert -file /tmp/cert02 -alias icloudfmi2 -trustcacerts -keystore ./jre/lib/security/cacerts -storepass changeit

```

Trust the certificates with **y**

```auto
systemctl stop openhab2

```

**OPTIONAL**

```auto
rm -r /var/lib/openhab2/cache/*

```

```auto
rm -r /var/lib/openhab2/tmp/*

```

```auto
reboot

```

---

_[View the full topic](https://community.openhab.org/t/icloud-binding-general-sslengine-problem/48314)._
