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]




Reply via email to