Skip to content

Commit

Permalink
checks if current cert is invalid and no --insecure was provided BEFO…
Browse files Browse the repository at this point in the history
…RE asking for credentials
  • Loading branch information
tisba committed May 25, 2023
1 parent 1bf4f01 commit 9ca40a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ func main() {
if !config.forceRenew {
os.Exit(0)
}
} else if (!unexpired || !validDomain) && !config.insecure {
log.Fatalf("Current certificate for %s is not valid anymore, please use --insecure if you want to proceed.", config.verificationURL)
}

setupAdminPassword(&config)
Expand Down

0 comments on commit 9ca40a2

Please sign in to comment.