File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ package cmd
4
4
5
5
import (
6
6
"context"
7
+ "encoding/hex"
7
8
"fmt"
8
9
9
10
"github.com/fatih/color"
@@ -60,7 +61,8 @@ Partial certificates are also all printed for further inspection.
60
61
notes := analyser .AnalyseCertificate (cert .Certificate )
61
62
if len (notes ) > 0 {
62
63
numIssues ++
63
- fmt .Printf ("Certificate %s\n " , cert .Certificate .Subject )
64
+ fingerprint := hex .EncodeToString (cert .FingerprintSha256 [:])
65
+ fmt .Printf ("Certificate %s, Fingerprint: %s\n " , cert .Certificate .Subject , fingerprint )
64
66
for i , n := range notes {
65
67
var lead string
66
68
if i == len (notes )- 1 {
@@ -85,7 +87,7 @@ Partial certificates are also all printed for further inspection.
85
87
if len (parsedCertificates .Partials ) > 0 {
86
88
for _ , p := range parsedCertificates .Partials {
87
89
fmtFn := color .New (color .FgYellow ).SprintfFunc ()
88
- fmt .Printf (fmtFn ("⚠️ Partial certificate found in file %s: %s\n " , p .Location , p .Reason ))
90
+ fmt .Print (fmtFn ("⚠️ Partial certificate found in file %s: %s\n " , p .Location , p .Reason ))
89
91
}
90
92
fmt .Printf ("Found %d partial certificates\n " , len (parsedCertificates .Partials ))
91
93
}
You can’t perform that action at this time.
0 commit comments