[gnutls-help] Error using certtool with config file on Win32

Jörg Weinhardt jw at ib-weinhardt.de
Sun Nov 15 14:39:05 CET 2015


Am 15.11.2015 um 09:55 schrieb Nikos Mavrogiannopoulos:
> On Fri, 2015-11-13 at 17:28 +0100, Jörg Weinhardt wrote:
>> Hi,
>>
>> I tried to use certtool from  GnuTLS 3.4.5-w32 and also GnuTLS
>> 3.3.13-w32 using a template file as input.
>>
>> I always get the following error message:
>>
>> certtool  -V --generate-self-signed --load-privkey test_key.key
>> --template test_template.txt --outfile test_cert.cert
>> libopts error 0 (No error) calling read for 'test_template.txt'
>> configFileLoad: No error
>> Error loading template: test_template.txt
> 
> Hi,
>  That is output by libopts used by certtool to read the template. It
> seems that libopts gets a premature end of file while reading it.
> However, I couldn't reproduce that with wine and your configuration
> file. Which version of windows is that?
> 
> 
> regards,
> Nikos
> 
> 


Hi Nikos,

that was a good hint! I replaced the Windows CR/LF by a Unix-style LF
and it works. Is it possible to configure libopts to handle both?

Thanks and regards,
Joerg



More information about the Gnutls-help mailing list