diff --git a/confidant/routes/certificates.py b/confidant/routes/certificates.py index 456b8407..daefb9d0 100644 --- a/confidant/routes/certificates.py +++ b/confidant/routes/certificates.py @@ -180,7 +180,7 @@ def get_certificate_from_csr(ca): except CertificateAuthorityNotFoundError: return jsonify({'error': 'Provided CA not found.'}), 404 data = request.get_json() - + if not data or not data.get('csr'): return ( jsonify(