Skip to content

Commit

Permalink
Fix alg flag check
Browse files Browse the repository at this point in the history
  • Loading branch information
jsha committed Dec 8, 2023
1 parent 6c6d1f4 commit 96a5c93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ will not overwrite existing keys or certificates.
alg := x509.RSA
if strings.ToLower(*caAlg) == "ecdsa" {
alg = x509.ECDSA
} else if strings.ToLower(*caCert) != "rsa" {
} else if strings.ToLower(*caAlg) != "rsa" {
fmt.Printf("Unrecognized algorithm: %s (use RSA or ECDSA)\n", *caAlg)
os.Exit(1)
}
Expand Down

0 comments on commit 96a5c93

Please sign in to comment.