I have the following configs (SERVER):
Code: Select all
[admin@AWAY-CLIENT] /certificate> print
Flags: K - decrypted-private-key, Q - private-key, R - rsa, D - dsa
0 D name="cert1" <MUCH DETAIL DELETED> ca=yes
1 KR name="cert2" <MUCH DETAIL DELETED> ca=yes
Code: Select all
/interface ovpn-server server
set auth=sha1,md5 certificate=cert2 cipher=blowfish128,aes128 \
default-profile=default-encryption enabled=yes keepalive-timeout=60 \
mac-address=FE:63:94:F4:15:D2 max-mtu=1500 mode=ip netmask=24 port=1194 \
require-client-certificate=no
Code: Select all
/interface ovpn-client
add add-default-route=no auth=md5 certificate=cert2 cipher=aes128 comment="" \
connect-to=192.168.50.1 disabled=no mac-address=00:00:00:00:00:00 \
max-mtu=1500 mode=ip name=ovpn-out1 password=client1 port=1194 profile=\
default user=client1
This config works, but if I ask the server to require the client certificate (which SHOULD be the CA file with "D" flag above), there is no joy, just as the wiki says.
Is this still the case, or am I doing something wrong to get this working. Is there a way to require the client to present a certificate of trust before allowing authentication to proceed?