From 1a73228d83b6744bb15990a921b6ad756450dd03 Mon Sep 17 00:00:00 2001 From: Gustavo Luvizotto Cesar Date: Mon, 25 Sep 2023 11:33:51 +0200 Subject: [PATCH] parallelize validation --- README.md | 6 ++++++ example/output-sample.parquet | Bin 1935 -> 0 bytes main.go | 38 +++++++++++++++++++++------------- result/result.go | 22 ++++++++++++++++---- validator/validator.go | 24 ++++++++++++--------- 5 files changed, 62 insertions(+), 28 deletions(-) delete mode 100644 example/output-sample.parquet diff --git a/README.md b/README.md index 6832cec..7ca3fd4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,11 @@ # cert-validator X.509 certificate chain validator. +## Requirements +* Go environment +* Internet connection (to download the CCADB root CA certificates). +This can be avoided by **not** specifying the ```--tls-root``` or ```--smime-root``` flags. + ## Build Clone this repository and run the following command in the toplevel directory: ```shell @@ -48,6 +53,7 @@ The input in csv format has the following columns: id,chain ``` Where ```chain``` is a comma-separated list of PEM-encoded X.509 certificates within double quotes. +The ```id``` parameters is an integer that uniquely identifies the chain. The output is in parquet format and has the following schema: ``` diff --git a/example/output-sample.parquet b/example/output-sample.parquet deleted file mode 100644 index cf04861984b1b61d786b086ca9a31d71b9dbeb45..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1935 zcmc&#KX21O6n}R$mQ_U!L+)ftmU;_OC5U9Z4N5EviJhTBnOLHzxfV+$E@$@-upq<- zKvj1(J^*7s07J#dz>N3+otP@bd*?tRr30Hiyq9f4>ZGWnfhK0_Iut1fw@f9Z&a@@HE_&^>oT(VElib6W28y8OM4$*i%l zwlmaJKhfyQn~oUBi@V~j1M