Hi Tobias.

Putting URL in double quotes works for me.
I didn’t notice the quoting.

Thank you!

> 2020/11/11 18:17、Tobias Heider <[email protected]>のメール:
> 
> Hi Yuichiro,
> 
> Thanks for the report.  Putting the url in quotes should
> solve your problem:
> 
> set ocsp "http://example.com";
> 
> - Tobias
> 
> On Wed, Nov 11, 2020 at 09:52:17AM +0900, 内藤 祐一郎 wrote:
>> Hi.
>> 
>> I have tried to set ocsp URL for iked(8),
>> but it fails by syntax error.
>> 
>> For example, writing following URL in /etc/iked.conf.
>> 
>> ```
>> set ocsp http://example.com
>> ```
>> 
>> `/sbin/iked -nf /etc/iked.conf` shows as follows.
>> 
>> ```
>> /etc/iked.conf: 1: syntax error
>> /etc/iked.conf: no valid configuration rules found
>> ```
>> 
>> If I wrote the URL just only a hostname,
>> syntax error disappeared.
>> 
>> ```
>> $ cat /etc/iked.conf
>> set ocsp example.com
>> $ /sbin/iked -nf /etc/iked.conf
>> /etc/iked.conf: no valid configuration rules found
>> configuration OK
>> ```
>> 
>> If I add a slash at the end of hostname,
>> iked fails by syntax error.
>> 
>> ```
>> $ cat /etc/iked.conf                                                    
>> set ocsp example.com/
>> $ /sbin/iked -nf /etc/iked.conf                                         
>> /etc/iked.conf: 1: syntax error
>> /etc/iked.conf: no valid configuration rules found
>> ```
>> 
>> So it seems that slash is not allowed in URL field.
>> I have tried in OpenBSD 6.8 and Current.
>> Both of them have same problem.
>> 
>> —
>> Yuichiro NAITO
>> [email protected]

—
Yuichiro NAITO
[email protected]




Reply via email to