can't read crl.pem
-
- OpenVpn Newbie
- Posts: 1
- Joined: Tue Jun 16, 2015 3:46 pm
can't read crl.pem
Hello All
since some colleagues left company, i try to revoke their certificate , below is my step.
1. revoke certificate , it is successful, because /etc/openvpn/esay-rsa/keys/index.txt indicate "R" for this certificate
2. add below line in /etc/openvpn/server.conf
crl-verify /etc/openvpn/easy-rsa/keys/crl.pem
3. chmod 755 crl-verify /etc/openvpn/easy-rsa/keys
after reload openvpn configuration file, the log show below error.
cannot read: /etc/openvpn/easy-rsa/keys/crl.pem: No such file or directory (errno=2)
Any help could be appreciate. thanks in advance
since some colleagues left company, i try to revoke their certificate , below is my step.
1. revoke certificate , it is successful, because /etc/openvpn/esay-rsa/keys/index.txt indicate "R" for this certificate
2. add below line in /etc/openvpn/server.conf
crl-verify /etc/openvpn/easy-rsa/keys/crl.pem
3. chmod 755 crl-verify /etc/openvpn/easy-rsa/keys
after reload openvpn configuration file, the log show below error.
cannot read: /etc/openvpn/easy-rsa/keys/crl.pem: No such file or directory (errno=2)
Any help could be appreciate. thanks in advance
- maikcat
- Forum Team
- Posts: 4200
- Joined: Wed Jan 12, 2011 9:23 am
- Location: Athens,Greece
- Contact:
Re: can't read crl.pem
post your config please,
if you use user nobody to start the service you must have read permission to crl.pem
including read+execute in previous folders.
Michael.
if you use user nobody to start the service you must have read permission to crl.pem
including read+execute in previous folders.
Michael.
-
- OpenVpn Newbie
- Posts: 6
- Joined: Fri Mar 20, 2015 3:03 pm
Re: can't read crl.pem
Hi Michael,
I have the same problem. Can you tell me the command to set the permission correctly? In my logfile is additionaly a error to set a route (I have defined two routes in my config).
Thank you very much!
Best regards
I have the same problem. Can you tell me the command to set the permission correctly? In my logfile is additionaly a error to set a route (I have defined two routes in my config).
Thank you very much!
Best regards
-
- OpenVPN Protagonist
- Posts: 11142
- Joined: Fri Jun 03, 2016 1:17 pm
Re: can't read crl.pem
Please see:maikcat wrote:
post your config please,
if you use user nobody to start the service you must have read permission to crl.pem
including read+execute in previous folders.
Michael.
HOWTO: Request Help !
-
- OpenVpn Newbie
- Posts: 6
- Joined: Fri Mar 20, 2015 3:03 pm
Re: can't read crl.pem
Hi,
sorry, my version is V2.3.4:
Config:
When I delete "user nobody" "group nogroup" it work's fine.
Best regards
sorry, my version is V2.3.4:
Config:
Code: Select all
# Server parameters
server 192.168.20.0 255.255.255.0
port 1194
proto udp
dev tun-UDP
user nobody
group nogroup
persist-key
persist-tun
#ifconfig-pool-persist ipp.txt
auth-user-pass-verify /usr/local/sbin/openvpn-auth via-file
script-security 2
client-config-dir /etc/openvpn/ccd
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 192.168.1.1"
push "route 192.168.1.0 255.255.255.0"
push "route 192.168.2.0 255.255.255.0"
client-to-client
crl-verify /etc/openvpn/easy-rsa/pki/crl.pem
max-clients 2
keepalive 10 120
# Control channel (TLS)
tls-version-min 1.2
tls-cipher TLS-DHE-RSA-WITH-AES-256-GCM-SHA384
tls-auth ta.key 0
remote-cert-tls client
tls-server
# Data channel
auth SHA512
cipher AES-256-CBC
# Compression
comp-lzo
# Logging
log /var/log/openvpn.log
verb 3
status openvpn-status.log
# Certificates
ca ca.crt
cert server.crt
key server.key
dh dh4096.pem
Best regards
-
- OpenVPN Protagonist
- Posts: 11142
- Joined: Fri Jun 03, 2016 1:17 pm
Re: can't read crl.pem
maikcat wrote:if you use user nobody to start the service you must have read permission to crl.pem
including read+execute in previous folders.
Michael.
See your distro documentation for file+directory permissions.Zuendapp wrote:Can you tell me the command to set the permission correctly?
Post your log file @ --verb 4Zuendapp wrote:In my logfile is additionaly a error to set a route
-
- OpenVpn Newbie
- Posts: 2
- Joined: Wed Dec 27, 2017 7:52 am
Re: can't read crl.pem
Is there any danger to running the service as root:root?
To bypass the above nobody:nogroup restrictions, I created /REV and stuck "crl.pem" in it, recursively changed ownership of /REV to nobody:nogroup, then changed the "crl-verify" option to. Seems to be working. I'll revert to the previous config if it's safe to run the service as root"root.
To bypass the above nobody:nogroup restrictions, I created /REV and stuck "crl.pem" in it, recursively changed ownership of /REV to nobody:nogroup, then changed the "crl-verify" option to
Code: Select all
crl-verify /REV/crl.pem
-
- OpenVpn Newbie
- Posts: 17
- Joined: Sat Aug 10, 2019 8:40 am
Re: can't read crl.pem
I'm having the same problem.
I did the following operations
"can't read crl.pem"
File Permission is :
-rw------- 1 root root 796 Eyl 17 08:47 crl.pem
but I don't understand how to solve it
Can you help me ?
I did the following operations
When the client connected to Openvpn server , i took an errorcd /etc/openvpn/easyrsa ;
./easyrsa gen-crl
cp crl.pem /etc/openvpn/
systemctl restart openvpn.server
"can't read crl.pem"
File Permission is :
-rw------- 1 root root 796 Eyl 17 08:47 crl.pem
but I don't understand how to solve it
Can you help me ?
-
- OpenVpn Newbie
- Posts: 17
- Joined: Sat Aug 10, 2019 8:40 am
Re: can't read crl.pem
Hi
Plase Help me
Plase Help me