Skip to content
Snippets Groups Projects
Verified Commit ab94545a authored by Frank Sauerburger's avatar Frank Sauerburger
Browse files

Protect against invalid CSR

parent 9cf61383
No related branches found
No related tags found
1 merge request!9Resolve "Protect against key decode errors"
Pipeline #7614 waiting for manual action
...@@ -214,6 +214,9 @@ class CertificateSigningRequest(models.Model): ...@@ -214,6 +214,9 @@ class CertificateSigningRequest(models.Model):
def extensions(self): def extensions(self):
"""Return the subject of the certificate""" """Return the subject of the certificate"""
if not self._decode():
return []
return [( return [(
e.oid._name, e.oid._name,
e.value, e.value,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment