[gnutls-help] seek error in in config file

Nikos Mavrogiannopoulos nmav at gnutls.org
Mon Oct 20 14:29:27 CEST 2014


On Sun, Oct 19, 2014 at 12:16 PM, Sascha Ziemann <ceving at gmail.com> wrote:
> Hi,
>
> I tried to feed the config to certtool without writing it do disk:
>
> function generate_ca_cert ()
> {
>   local CA_KEY="$1"
>   local CA_CRT="$2"
>   certtool --generate-self-signed \
>     --template <(ca_config) \
>     --load-privkey "$CA_HOME"/"$CA_KEY" \
>     --outfile "$CA_HOME"/"$CA_CRT"
> }
> This throws the following error:
> error parsing command line: /dev/fd/63: seek error in in config file
> Why is it necessary to seek the config file?

I don't know this syntax to specify a file on command line, but the
template file is read by autogen (libopts to be precise). I don't know
why it needs to seek though, but my guess would be that it needs to
support more complex than gnutls' configuration files.

regards,
Nikos



More information about the Gnutls-help mailing list