Thanks, this helped me to understand, that key should be entered in the certificates section along with client certificate.
This means that my problem is different. OpenVPN log says that (from bottom to top):
Exiting due to fatal error
FreeBSD ifconfig failed: external program exited with error status: 1
/sbin/ifconfig ovpnc5 10.11.0.34 netmask 255.255.255.0 mtu 1500 up
do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
TUN/TAP device /dev/tap5 opened
TUN/TAP device ovpnc5 exists previously, keep at program end
OPTIONS IMPORT: route-related options modified
OPTIONS IMPORT: --ifconfig/up options modified
OPTIONS IMPORT: timers and/or timeouts modified
Options error: option 'route' cannot be used in this context ([PUSH-OPTIONS])
PUSH: Received control message: 'PUSH_REPLY,route 10.10.0.0 255.255.255.0,route-gateway 10.11.0.1,ping 10,ping-restart 120,ifconfig 10.11.0.34 255.255.255.0'
SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
[server] Peer Connection Initiated with [AF_INET]XX.XX.XX.XX:1194
as far as I understood, server pushes ifconfig command, which fails. When I try to execute it manually, it also fails
>/sbin/ifconfig ovpnc5 10.11.0.34 netmask 255.255.255.0
ifconfig: ioctl (SIOCAIFADDR): Destination address required
does this mean that server sends command with incorrect FreeBSD syntax? Or this incorrect syntax comes from OpenVPN?
How to configure OpenVPN client to ignore such commands?