Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
meng-han committed Oct 14, 2024
1 parent afbb479 commit bcf4a28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions confidant/routes/certificates.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,10 @@ def get_certificate_from_csr(ca):
logged_in_user,
)

certificate = ca_object.issue_certificate(data['csr'], validity)
certificate_json = ca_object.issue_certificate(data['csr'], validity)
certificate_response = CertificateResponse(
certificate=certificate['certificate'],
certificate_chain=certificate['certificate_chain'],
certificate=certificate_json['certificate'],
certificate_chain=certificate_json['certificate_chain'],
)
return certificate_response_schema.dumps(certificate_response)

Expand Down

0 comments on commit bcf4a28

Please sign in to comment.