emjunior258 / certeasy

The easiest certificate authority for development and experiments
Apache License 2.0
7 stars 2 forks source link

Incomplete PEM Certificate Results in Unexpected 500 Status Code #118

Open sambodirce opened 8 months ago

sambodirce commented 8 months ago

Description:
The test case test_should_not_create_a_new_issuer_from_pem_with_uncompleted_cert is failing due to unexpected behavior when an incomplete PEM certificate is provided. The purpose of the test is to ensure that the system rejects attempts to create issuers from PEM certificates with incomplete or invalid data by expecting a status code of 422. However, the test encounters a server-side error (status code 500) instead of the expected validation error.

Screenshot from 2024-03-09 20-26-04

Test Data: