Problem with some certificates and verifyCertChain
Posted: Sat Feb 10, 2018 4:04 pm
Hello,
I'm working with ESP-01 and some I²C sensors. I'm using the Ardiuno IDE. I send data to a php script at the web site and than to a MySQL database. Now I want to secure the access. A solution with fingerprint work but this needs an update if the certificate changes. So I tried the example HTTPSRequestCACert.ino with the function verifyCertChain from the esp8266 environment. The example works, but not with the certificate of the ssl proxy of my web page https://ssl.webpack.de/. I tried certificates from other web sites, most are working, some not. I extract the DER certificate, transfer that to a linux system and create the certificate file with:
Certificates from ebay, paypal, onedrive, cloudmqtt are working with this way.
Is it possible to get an error code to identify the problem? Or has anybody an idea why the certificate doesn't work. I have attached the certificate.
Regards Michael
I'm working with ESP-01 and some I²C sensors. I'm using the Ardiuno IDE. I send data to a php script at the web site and than to a MySQL database. Now I want to secure the access. A solution with fingerprint work but this needs an update if the certificate changes. So I tried the example HTTPSRequestCACert.ino with the function verifyCertChain from the esp8266 environment. The example works, but not with the certificate of the ssl proxy of my web page https://ssl.webpack.de/. I tried certificates from other web sites, most are working, some not. I extract the DER certificate, transfer that to a linux system and create the certificate file with:
Code: Select all
xxd -i GlobalSignRootCA.der CACert_webpack.ino
Certificates from ebay, paypal, onedrive, cloudmqtt are working with this way.
Is it possible to get an error code to identify the problem? Or has anybody an idea why the certificate doesn't work. I have attached the certificate.
Regards Michael