Open robstradling opened 8 years ago
This would be great. Also any chance that you provide a way to get back the certificate PEM encoded or similar in the initial query?
Context is this PR on another project, I was trying to query live certificates for a particular host, and doing a N+1 query to get these results is terrible.
I'm going to switch to using the readonly postgres database instead. Query all for a host and return certificates in that query.
Add a "?host=" search type that will list certs with any identity that a browser would match to a URL on the host indicated by the search value.
e.g. ?host=www.example.com would match [CN or dNSName]=www.example.com, [CN or dNSName]=*.example.com, but not [CN or dNSName]=secure.example.com, etc.