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
Branches 11-protect-against-key-decode-errors
No related tags found
1 merge request!9Resolve "Protect against key decode errors"
Pipeline #7614 waiting for manual action
This commit is part of merge request !9. Comments created here will be created in the context of that merge request.
......@@ -214,6 +214,9 @@ class CertificateSigningRequest(models.Model):
def extensions(self):
"""Return the subject of the certificate"""
if not self._decode():
return []
return [(
e.oid._name,
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