beltram 3 лет назад
Родитель
Сommit
ff07fdc0fd
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      acme/challenge.go

+ 1 - 1
acme/challenge.go

@@ -451,7 +451,7 @@ func wireOIDC01Validate(ctx context.Context, ch *Challenge, db DB, jwk *jose.JSO
 		return WrapErrorISE(err, "There are not enough orders for this account for this custom OIDC challenge")
 		return WrapErrorISE(err, "There are not enough orders for this account for this custom OIDC challenge")
 	}
 	}
 
 
-	order := orders[len(orders)]
+	order := orders[len(orders)-1]
 
 
 	if err := db.CreateOidcToken(ctx, order, oidcToken); err != nil {
 	if err := db.CreateOidcToken(ctx, order, oidcToken); err != nil {
 		return WrapErrorISE(err, "Failed storing OIDC id token")
 		return WrapErrorISE(err, "Failed storing OIDC id token")