Commit 9016d309 authored by Julien Muchembled's avatar Julien Muchembled

CertificateAuthorityTool: do not generate cert with empty common_name

parent e4b0603f
......@@ -191,6 +191,8 @@ class CertificateAuthorityTool(BaseTool):
# No docstring in order to make this method non publishable
# Returns certificate for passed common name, as dictionary of
# {key, certificate, id, common_name}
if not common_name:
raise ValueError("Invalid common name: %r" % common_name)
self._checkCertificateAuthority()
self._lockCertificateAuthority()
try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment