File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -30,4 +30,3 @@ func (l *logger) Crit(message string) {
30
30
func (l * logger ) Emerg (message string ) {
31
31
fmt .Print (aurora .Red (message ))
32
32
}
33
-
Original file line number Diff line number Diff line change @@ -97,21 +97,21 @@ func main() {
97
97
valid = false
98
98
}
99
99
100
- if ! ok {
100
+ if ! ok {
101
101
valid = false
102
102
log .Warning ("Failed to verify certificate revocation status" )
103
103
}
104
104
105
105
if err != nil {
106
- valid = false
107
- log .Warningf ("Failed to verify certificate revocation status: %s" , err )
108
- }
106
+ valid = false
107
+ log .Warningf ("Failed to verify certificate revocation status: %s" , err )
108
+ }
109
109
110
110
if valid {
111
111
fmt .Println (Green ("Certificate seems to be valid" ))
112
112
os .Exit (0 )
113
- } else {
114
- fmt .Println (Red ("Certificate is invalid" ))
113
+ } else {
114
+ fmt .Println (Red ("Certificate is invalid" ))
115
115
os .Exit (1 )
116
116
}
117
117
}
@@ -134,7 +134,7 @@ func checkIfCertValid(server, hostname string) error {
134
134
func getCert (server , hostname string ) (* x509.Certificate , error ) {
135
135
conf := & tls.Config {
136
136
InsecureSkipVerify : true ,
137
- ServerName : hostname ,
137
+ ServerName : hostname ,
138
138
}
139
139
140
140
conn , err := tls .Dial ("tcp" , server , conf )
You can’t perform that action at this time.
0 commit comments