When trying to enroll via CSR upload in the public web pages, using an invalid CSR file (wrong format, random file), an exception will be thrown and displayed to user.
Instead of this, we should probably catch this exception and display a nice error message to the user. Something in the lines of:
"The uploaded CSR format is invalid or unsupported by EJBCA. Please upload the CSR in one of the supported formats. For information on supported formats please refer to EJBCA documentation."
The "refer to" could be a link to specific docs in EJBCA describing the supported formats (do we have any docs on this?).