- OS: Ubuntu 12.04
- OpenVPN version: 2.2.1-8
- Setup: one CA cert, one server cert, multiple client certs
Server config:
port 1194
proto udp
dev tun
keepalive 10 120
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn/team.log
syslog vpn-team
verb 4
writepid /var/run/openvpn-team.pid
ca /etc/openvpn/ca.crt
cert /etc/openvpn/team/server.crt
key /etc/openvpn/team/server.key # This file should be kept secret
dh /etc/openvpn/dh.pem
server 172.16.255.128 255.255.255.128
ifconfig-pool-persist /etc/openvpn/team/ipp.txt
client-to-client
push "route 172.16.0.0 255.255.254.0"
crl-verify crl.pem
client config:
dev tun
proto udp
resolv-retry infinite
nobind
user nobody
group nogroup
persist-key
persist-tun
comp-lzo
verb 4
client
remote x.x.x.x 1194
ca ca.crt
cert team.crt
key team.key
remote-cert-tls server
Using revoke-full
script from easy-rsa
package, I saw that it only output the last one into a crl.pem
file:
# generate a new CRL -- try to be compatible with
# intermediate PKIs
$OPENSSL ca -gencrl -out "$CRL" -config "$KEY_CONFIG"
In my case, I wrote a script to append to that file but only the first one got denied, all other one can still connect.
Using openssl crl
, it just show the serial of the first one:
Revoked Certificates:
Serial Number: E9955907C7F48BDDFCADCFECFAEDC8B7
Revocation Date: Feb 11 08:57:19 2015 GMT
So, the question is: does crl-verify
support a concatenated CRL file? Is it a limit of openssl?
Related: