Skip to content

Commit

Permalink
:p: Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnjack committed Oct 9, 2020
1 parent 35be143 commit e3fed0f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions cmd/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ var verifyCmd = &cobra.Command{
}
cmd.SilenceUsage = true

if !rootVerbose {
fmt.Printf("> Verifying %s...\n", rootCertPath)
}

// Parse and extract certificates
logf("> Parsing the certificate %s...\n", rootCertPath)

Expand Down Expand Up @@ -73,7 +77,10 @@ var verifyCmd = &cobra.Command{
}
logln(" ok")

fmt.Printf("> Certificate %s: ok\n", rootCertPath)
logf("> Certificate %s: ok\n", rootCertPath)
if !rootVerbose {
fmt.Println(" ok")
}
return nil
},
}
Expand Down Expand Up @@ -172,7 +179,7 @@ func verifyCertificate(certs []*x509.Certificate, hostname string) error {
// Verify random subdomain
opts.DNSName = "veryrandomdomain." + hostname
if _, err := certs[0].Verify(opts); err != nil {
return fmt.Errorf("not a vild card certificate")
return fmt.Errorf("not a wildcard certificate")
}
return nil
}

0 comments on commit e3fed0f

Please sign in to comment.