Cert_expiry platform doesn't work with ECDSA certificates


#1

Hi,

I have configured the cert_expiry sensor with 6 certificates.
3 of them with RSA certificates are working fine. 3 of them with ECC (ECDSA) certificates just report an expiry of “Unknown” in the UI and in the logs the following is printed:

2018-12-04 08:57:33 ERROR (Thread-6) [homeassistant.components.sensor.cert_expiry] Cannot connect to animal.muppetz.com
2018-12-04 08:57:33 ERROR (Thread-21) [homeassistant.components.sensor.cert_expiry] Cannot connect to trogdor.muppetz.com
2018-12-04 08:57:33 ERROR (Thread-14) [homeassistant.components.sensor.cert_expiry] Cannot connect to muppetz.com

However the shell that HA is running from can connect just fine:

(homeassistant) [email protected]:~$ curl -I https://trogdor.muppetz.com
HTTP/2 200
server: nginx
date: Mon, 03 Dec 2018 20:00:45 GMT
content-type: text/html; charset=UTF-8
x-frame-options: SAMEORIGIN
last-modified: Mon, 03 Dec 2018 20:00:45 GMT

Does anyone know how to fix this? Are ECC certificates supported by Home Assistant?
I do remember when I initially setup my Home Assistant with SSL that it didn’t support a ECC certificate itself, I had to request a RSA cert for it.

Thanks!