This commit is contained in:
Hossein Shafagh 2020-10-27 12:47:35 -07:00
parent d59a558d58
commit 54c2245115

View File

@ -568,6 +568,8 @@ def query_common_name(common_name, args):
.filter(not_(Certificate.replaced.any())) # ignore rotated certificates to avoid duplicates
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()
elif common_name == "%":
# all valid certs from the owner