Using SSL with an IP address instead of DNS...

hdrut
Posts: 25
Joined: Fri Feb 13, 2015 11:02 am
Location: Argentina

Using SSL with an IP address instead of DNS...

Postby hdrut » Wed Sep 02, 2015 5:06 am

Hi,

been working on SSL with Android these last weeks and found an issue that may be worth mentioning here in case somebody else has the same problem.

The problem with the client certificate created by the Espressif's makefile is it uses an IP address as CN (common name), which is not recommended. During SSL verification process, this IP address is not accepted and verification fails.
The right way to do it, also the way I solved the issue, is by adding a SAN (Subject Alternative Name) field to the certificate config file.
The following link may help understand how to do it.

https://bowerstudios.com/node/1007

Who is online

Users browsing this forum: No registered users and 85 guests