mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:45:22 +02:00
there must be at least one subject name to sign
This commit is contained in:
@@ -176,6 +176,9 @@ class session(object):
|
||||
self.die(r, r.UnsafeKey)
|
||||
return
|
||||
names = CSR.subject_names(csr)
|
||||
if len(names) == 0:
|
||||
self.die(r, r.BadCSR)
|
||||
return
|
||||
for san in names: # includes CN as well as SANs
|
||||
if not safe("hostname", san) or not CSR.can_sign(san):
|
||||
# TODO: Is there a problem including client-supplied data in the URL?
|
||||
|
||||
Reference in New Issue
Block a user