openssl server : issue with certificates

preetam
Posts: 49
Joined: Thu Jan 26, 2017 2:31 pm
Location: Germany

openssl server : issue with certificates

Postby preetam » Tue Feb 28, 2017 11:07 am

Hi,

I am trying to run the openssl server exmaple from https://github.com/espressif/esp-idf/bl ... l_server.c

The server works fine with the certificates mentioned in the exmaple.
I am testing using
openssl s_client -connect <Ip address of ssl server>:443

However when i try to create my own certificates using openssl or using the make file mentioned in ESP8266 SSL User Manual
Version 1.4

I get errors as follows
6812:error:0407006A:rsa routines:RSA_padding_check_PKCS1_type_1:block type is not 01:rsa_pk1.c:103:
6812:error:04067072:rsa routines:RSA_EAY_PUBLIC_DECRYPT:padding check failed:rsa_eay.c:705:
6812:error:1408D07B:SSL routines:ssl3_get_key_exchange:bad signature:s3_clnt.c:2004:

Has anybody faced similar issues.

preetam
Posts: 49
Joined: Thu Jan 26, 2017 2:31 pm
Location: Germany

Re: openssl server : issue with certificates

Postby preetam » Tue Feb 28, 2017 1:13 pm

Just for information the certificate (cacert.pem) in the example is server certificate and not CA certificate.

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: openssl server : issue with certificates

Postby ESP_Angus » Tue Feb 28, 2017 11:58 pm

Is the new certificate definitely in PEM format? Are you able to post it here or PM me a link to it?

Angus

Who is online

Users browsing this forum: Bing [Bot] and 81 guests