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): ...@@ -191,6 +191,8 @@ class CertificateAuthorityTool(BaseTool):
# No docstring in order to make this method non publishable # No docstring in order to make this method non publishable
# Returns certificate for passed common name, as dictionary of # Returns certificate for passed common name, as dictionary of
# {key, certificate, id, common_name} # {key, certificate, id, common_name}
if not common_name:
raise ValueError("Invalid common name: %r" % common_name)
self._checkCertificateAuthority() self._checkCertificateAuthority()
self._lockCertificateAuthority() self._lockCertificateAuthority()
try: 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