I'm trying to search via Google to find a particular Ruby source file responsible for an issue and the OpenSSL function of interest is SSL_get_peer_certificate
. If I find the function I'll probably find the relevant Ruby code.
However, searching Ruby source files is not returning expected results. I'm searching with the following, and it returned zero results.
SSL_get_peer_certificate site:github.com/ruby/ruby
This returned a page or two of results, which is almost certainly wrong (it should have produced a cornucopia):
ssl site:github.com/ruby/ruby
How does one search GitHub projects?
(This is related to a question on Stack Overflow, Verifying only that a SSL certificate is signed by a CA? where I believe the problem is Ruby is performing host name matching only based on the CN
, and not the SAN
.)