diff options
author | Luca Deri <deri@ntop.org> | 2022-01-13 19:03:17 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2022-01-13 19:06:21 +0100 |
commit | 406ac7e8c825ba05bc6371ed3088226bdef21b02 (patch) | |
tree | b759ec5050b56aa561874ce214ca7fddd6c1567f /example | |
parent | dc60cd09c49f52d2eba6c169f973f757695e4f5a (diff) |
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"
Diffstat (limited to 'example')
-rw-r--r-- | example/ndpiReader.c | 2 | ||||
-rw-r--r-- | example/protos.txt | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 7b883ab71..a84f1e0d0 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -3004,7 +3004,7 @@ static void printResults(u_int64_t processing_time_usec, u_int64_t setup_time_us for(i = 0; i < sizeof(cumulative_stats.flow_confidence)/sizeof(cumulative_stats.flow_confidence[0]); i++) { if(cumulative_stats.flow_confidence[i] != 0) - printf("\tConfidence %-17s: %-10llu (flows)\n", ndpi_confidence_get_name(i), + printf("\tConfidence: %-10s %-13llu (flows)\n", ndpi_confidence_get_name(i), (long long unsigned int)cumulative_stats.flow_confidence[i]); } } diff --git a/example/protos.txt b/example/protos.txt index 555503f4c..3428ee109 100644 --- a/example/protos.txt +++ b/example/protos.txt @@ -54,3 +54,6 @@ ip:54.80.47.130@AmazonPrime host_risk_mask:".local"=0 host_risk_mask:".msftconnecttest.com"=0 + +# Custom certification autorities we trust +trusted_issuer_dn:"CN=813845657003339838, O=Code42, OU=TEST, ST=MN, C=US" |