File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -228,10 +228,16 @@ func certificateAction(ctx *cli.Context) error {
228228 offline := ctx .Bool ("offline" )
229229 sans := ctx .StringSlice ("san" )
230230
231- // offline and token are incompatible because the token is generated before
232- // the start of the offline CA.
233- if offline && tok != "" {
231+ switch {
232+ case offline && tok != "" :
233+ // offline and token are incompatible because the token is generated before
234+ // the start of the offline CA.
234235 return errs .IncompatibleFlagWithFlag (ctx , "offline" , "token" )
236+ case ctx .String ("attestation-uri" ) != "" && ctx .String ("kms" ) != "" :
237+ // attestation-uri and kms are incompatible because the ACME-DA flow
238+ // expects all necessary parameters in the attestation-uri, and having
239+ // both can be confusing.
240+ return errs .IncompatibleFlagWithFlag (ctx , "attestation-uri" , "kms" )
235241 }
236242
237243 // certificate flow unifies online and offline flows on a single api
You can’t perform that action at this time.
0 commit comments