OpenVPN and certificates
Posted: Fri Sep 05, 2008 9:45 am
According to the wiki, there is currently no way to implement a full PKI with OpenVPN. Is this something that is coming, or if it has changed, can anyone provide some assistance in getting it working?
I have the following configs (SERVER):
SERVER CONFIG:
I have created the ppp secrets as well as the client configuration. In the client, I have uploaded and imported both the CA certificate (it shows "D" flag as well) and the key and crt file ("KR" flag). Client config is:
The "cert2" certificate is the client cert/key pair with "KR" flag.
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?
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?