comments
This commit is contained in:
parent
d59a558d58
commit
54c2245115
|
@ -568,6 +568,8 @@ def query_common_name(common_name, args):
|
||||||
.filter(not_(Certificate.replaced.any())) # ignore rotated certificates to avoid duplicates
|
.filter(not_(Certificate.replaced.any())) # ignore rotated certificates to avoid duplicates
|
||||||
|
|
||||||
if common_name == "%" and not owner:
|
if common_name == "%" and not owner:
|
||||||
|
# return all valid, and not revoked certs.
|
||||||
|
# This use-case should be deprecated, owner should become mandatory.
|
||||||
return query.all()
|
return query.all()
|
||||||
elif common_name == "%":
|
elif common_name == "%":
|
||||||
# all valid certs from the owner
|
# all valid certs from the owner
|
||||||
|
|
Loading…
Reference in New Issue