View Source CensysEx.Certs (censys_ex v2.0.1)

CensysEx wrapper for the search.censys.io v2 API for the "certs" resource

Summary

Functions

Hits the Censys Certs hosts API. Returns a stream of results

Hits the Censys View Certs V1 API.

Functions

Link to this function

get_hosts_by_cert(client, fp)

View Source
@spec get_hosts_by_cert(CensysEx.API.t(), String.t()) :: CensysEx.result_stream(map())

Hits the Censys Certs hosts API. Returns a stream of results

Examples

CensysEx.Certs.get_hosts_by_cert("fb444eb8e68437bae06232b9f5091bccff62a768ca09e92eb5c9c2cf9d17c426")
|> Stream.take(25)
|> Stream.map(&Map.get(&1, "ip"))
|> Enum.to_list()
["10.0.0.6", "10.2.0.1", ...]
@spec view(CensysEx.API.t(), String.t()) :: CensysEx.result()

Hits the Censys View Certs V1 API.

Examples

CensysEx.Certs.view("fb444eb8e68437bae06232b9f5091bccff62a768ca09e92eb5c9c2cf9d17c426")