Get the count of matching certificates for the provided hash
(censys_collection, sha256_hash)
| 57 | |
| 58 | |
| 59 | def get_censys_count(censys_collection, sha256_hash): |
| 60 | """ |
| 61 | Get the count of matching certificates for the provided hash |
| 62 | """ |
| 63 | result_count = censys_collection.count_documents( |
| 64 | {"p443.https.tls.certificate.parsed.fingerprint_sha256": sha256_hash} |
| 65 | ) |
| 66 | return result_count |
| 67 | |
| 68 | |
| 69 | def add_censys_certificates(censys_collection, zone, current_certs): |
no outgoing calls
no test coverage detected