[gnutls-help] More specific output when an error occurs

Pascal Withopf pwithopf at adiscon.com
Wed Sep 13 11:54:39 CEST 2017


2017-09-11 15:01 GMT+02:00 Nikos Mavrogiannopoulos <nmav at gnutls.org>:

> On Fri, Sep 8, 2017 at 4:46 PM, Pascal Withopf <pwithopf at adiscon.com>
> wrote:
> > At the moment rsyslog is giving the quoted text as error, but it is not
> > sufficient.
> > I made the experience, that users want to know more in detail what went
> > wrong.
> > The error is generic because it only tells you that something went wrong
> in
> > parsing.
> > But I would like to add the information What went wrong.
>
> That's up to application to report correct errors. rsyslog knows that
> this is an error at the certificate loading routine, and it's a
> parsing error. Thus it can display something much more user friendly
> rather than displaying the gnutls error code in isolation.
>

How would a more user friendly output look like in your opinion?
I'm trying to improve it, but at the moment I only get the error code from
gnutls_certificate_set_x509_key_file() and don't know what I can do with it.

>
> > So my question is, if there is a way to get more information on the
> specific
> > error, like "Could not find '-----BEGIN EC PRIVATE KEY" without having to
> > look at the whole debugging output.
>
> That is unfortunately debugging output. This is not intended for
> end-user to see, unless debugging. Imagine what would be the actual
> message if that was a DER or a PKCS#12 file.
>
> regards,
> Nikos
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20170913/b43145b3/attachment.html>


More information about the Gnutls-help mailing list