add support for wildcard certificate#13
Conversation
… ASN1 string is not guranteed to be NUL-terminated
|
Hi, |
|
@nabla-c0d3 Thank you for the response.
That is a good question. While OpenSSL 1.0.2 has the function, libressl does not, since it was forked before the function was added. In H2O, we recommend using libressl due to the fact that it supports CHAHA20-POLY1305; therefore we end up in having the need to have hostname verification implemented in some other way. |
This PR adds support for wildcard certificates (note: only supports CN/dNSName that starts with
*.).It also
.at the end of the supplied hostname if exists, so that for example supplied hostnamewww.example.com.matches against a certificate with CN=www.example.comrelates to #10