Added the ability to specify trusted issueDN often used in companies to self-signed certificates
This allows to avoid triggering alerts for trusted albeit private certificate issuers. Extended the example/protos.txt with the new syntax for specifying trusted issueDN. Example: trusted_issuer_dn:"CN=813845657003339838, O=Code42, OU=TEST, ST=MN, C=US"
This commit is contained in:
@@ -725,6 +725,15 @@ extern "C" {
|
||||
*/
|
||||
int ndpi_add_host_risk_mask(struct ndpi_detection_module_struct *ndpi_mod, char *host, ndpi_risk mask);
|
||||
|
||||
/**
|
||||
* Add a trusted certificate issuer DN
|
||||
*
|
||||
* @par ndpi_mod = the detection module
|
||||
* @par dn = the issuer DN as it appears in the certificate (example "CN=813845657003339838, O=Code42, OU=TEST, ST=MN, C=US")
|
||||
* @return 0 if the rule is loaded correctly; < 0 in case an error is detected
|
||||
*/
|
||||
int ndpi_add_trusted_issuer_dn(struct ndpi_detection_module_struct *ndpi_mod, char *dn);
|
||||
|
||||
/**
|
||||
* Read a file and load the categories
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user