[gnutls-help] seek error in in config file

Sascha Ziemann ceving at gmail.com
Mon Oct 20 16:50:51 CEST 2014


2014-10-20 14:29 GMT+02:00 Nikos Mavrogiannopoulos <nmav at gnutls.org>:

> 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).
>

It is not a file. It is a process substition, which is actually a pipe:

http://tldp.org/LDP/abs/html/process-sub.html

Using a pipe simplifies the cleanup, because no temporary files are written
to disk.
But if it is not supported by libopts, I will have to do the cleanup...

Regards,
Sascha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20141020/88c945b6/attachment-0001.html>


More information about the Gnutls-help mailing list