diff options
| author | Fraser Tweedale <ftweedal@redhat.com> | 2016-07-01 10:25:15 +1000 |
|---|---|---|
| committer | Fraser Tweedale <ftweedal@redhat.com> | 2016-07-01 10:32:54 +1000 |
| commit | c7f9e6c4e0711dfafc81d201dcfadee3e0efa335 (patch) | |
| tree | 870802b8b213d57deb2003d78397365adbd4ce79 /base/server/python | |
| parent | 3fdc686c9a4bab492d50cef707beef1f5f043153 (diff) | |
| download | pki-c7f9e6c4e0711dfafc81d201dcfadee3e0efa335.tar.gz pki-c7f9e6c4e0711dfafc81d201dcfadee3e0efa335.tar.xz pki-c7f9e6c4e0711dfafc81d201dcfadee3e0efa335.zip | |
Respond 400 if lightweight CA cert issuance fails
If certificate issuance fails during lightweight CA creation (e.g.
due to a profile constraint violation such as Subject DN not
matching pattern) the API responds with status 500.
Raise BadRequestDataException if cert issuance fails in a way that
indicates bad or invalid CSR data, and catch it to respond with
status 400.
Also do some drive-by exception chaining.
Fixes: https://fedorahosted.org/pki/ticket/2388
Diffstat (limited to 'base/server/python')
0 files changed, 0 insertions, 0 deletions
