mirror of
https://github.com/gregtwallace/apc-p15-tool.git
synced 2025-10-08 13:36:56 +00:00
app: add compatibility warnings
Try to warn users in console output about possible certificate issues. fixes: https://github.com/gregtwallace/apc-p15-tool/issues/20
This commit is contained in:
parent
7319fc16d8
commit
b821002e85
5 changed files with 152 additions and 19 deletions
pkg/app
|
@ -145,7 +145,7 @@ func (app *app) cmdInstall(cmdCtx context.Context, args []string) error {
|
|||
// verify cert is the correct one
|
||||
certVerified := bytes.Equal(leafCert.Raw, pemBlock.Bytes)
|
||||
if !certVerified {
|
||||
return errors.New("install: web ui leaf cert does not match new cert")
|
||||
return errors.New("install: web ui leaf cert does not match new cert (your cert may not be compatible with NMC; check for WARNINGs in this tool's output)")
|
||||
}
|
||||
|
||||
app.stdLogger.Println("install: ups web ui cert verified")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue