2014-10-20 14:29 GMT+02:00 Nikos Mavrogiannopoulos <[email protected]>:
> On Sun, Oct 19, 2014 at 12:16 PM, Sascha Ziemann <[email protected]> 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
_______________________________________________ Gnutls-help mailing list [email protected] http://lists.gnupg.org/mailman/listinfo/gnutls-help
